View Source Trifle.Stats.Designator.Behaviour behaviour (Trifle.Stats v2.5.0)

Behaviour for designator implementations.

Designators classify numeric values into buckets/categories for data analysis. They provide a consistent interface for value categorization.

Summary

Callbacks

Classify a numeric value into a bucket representation.

Callbacks

Link to this callback

designate(designator, value)

View Source
@callback designate(designator :: struct(), value :: number()) :: String.t()

Classify a numeric value into a bucket representation.

Parameters

  • designator: The designator instance
  • value: Numeric value to classify

Returns

String representation of the bucket/category the value falls into.