Skip to main content

evaluate

Function evaluate 

Source
pub fn evaluate(
    model: &Model,
    targets: &[MeasureId],
) -> Result<HashMap<MeasureId, HashMap<CoordKey, CellValue>>, EngineError>
Expand description

Run model to completion and return computed values for the requested derived measures: measure -> (coordinate-key -> value).

Numeric input + derived measures. Supports multi-layer derivation: a derived measure may reference other derived measures; they are built in topological order so each layer feeds the next. Cyclic dependencies are rejected.