Skip to main content

Crate score_set

Crate score_set 

Source
Expand description

A small library for composing weighted scoring metrics into score sets.

The crate provides:

  • NormalizedEval32 / NormalizedEval64 for combining a measure and normalization map.
  • Weighted32 / Weighted64 for weighting any evaluator.
  • DynScoreSet32 / DynScoreSet64 for storing heterogeneous metrics behind trait objects.

Re-exports§

pub use traits::V01Error;
pub use traits::prove_v01_f32;
pub use traits::prove_v01_f64;

Modules§

traits

Structs§

DynScoreSet32
A dynamic f32 score set that sums a list of evaluators.
DynScoreSet64
A dynamic f64 score set that sums a list of evaluators.
DynScoreSet32Builder
Builds a DynScoreSet32.
DynScoreSet64Builder
Builds a DynScoreSet64.
NormalizedEval32
An f32 evaluator that measures a context and normalizes the result.
NormalizedEval64
An f64 evaluator that measures a context and normalizes the result.
Weighted32
Applies a witnessed [0, 1] weight to an f32 evaluator.
Weighted64
Applies a witnessed [0, 1] weight to an f64 evaluator.

Functions§

metric32
Builds a weighted f32 metric from a measurement and normalization map.
metric64
Builds a weighted f64 metric from a measurement and normalization map.
weight32
Creates a witnessed f32 weight in the [0, 1] range.
weight64
Creates a witnessed f64 weight in the [0, 1] range.