Monty.Frameworks.Models.Salience.Strategies.Vocus2.Pyramids.PyramidCombine behaviour (ExTbpMonty.Core v0.1.0)

Copy Markdown View Source

How several pyramids become one.

Mirrors tbp/monty/frameworks/models/salience/strategies/vocus2/pyramids.py::PyramidCombine, a Protocol in Monty so a config can name how its maps are combined. It is a behaviour here: a combiner answers one pyramid from several of the same shape.

Monty's implementations — maximum and mean — are combine_max/1 and combine_mean/1 in the module beside this one; they are plain functions that match this shape rather than instances of the protocol.

Summary

Callbacks

One pyramid, from pyramids, which all have the same shape.

Types

t()

@type t() :: struct()

Callbacks

call(t, list)

One pyramid, from pyramids, which all have the same shape.