Skip to contents

Make a Transformation that computes the count of each unique value in data. This assumes that the category set is unknown.

Usage

make_count_by(input_domain, input_metric, .MO, .TV = "int")

Arguments

input_domain

undocumented

input_metric

undocumented

.MO

Output Metric.

.TV

Type of Value. Express counts in terms of this integral type.

Value

The carrier type is HashMap<TK, TV>, a hashmap of the count (TV) for each unique data input (TK).

Details

Required features: contrib

make_count_by in Rust documentation.

Citations:

Supporting Elements:

  • Input Domain: VectorDomain<AtomDomain<TK>>

  • Output Domain: MapDomain<AtomDomain<TK>, AtomDomain<TV>>

  • Input Metric: SymmetricDistance

  • Output Metric: MO