pub struct ComparisonResult {
pub results: Vec<ModelResult>,
pub time_steps: usize,
}Expand description
Comparison output from running every model in a Scenario.
Wraps a Vec<ModelResult> (one entry per requested model, in the order
given by Scenario::models) together with the shared time_steps count
(= Scenario::forcing.len()). Pass it to ensemble_stats /
ensemble_probabilistic / ensemble_rank_histogram for multi-model
ensemble diagnostics, or call best_nse to pick the
best-fitting member when metrics are populated.
Fields§
§results: Vec<ModelResult>One ModelResult per model in Scenario::models, same order.
time_steps: usizeNumber of time-steps in every member’s discharge series.
Implementations§
Source§impl ComparisonResult
impl ComparisonResult
Sourcepub fn best_nse(&self) -> Option<&ModelResult>
pub fn best_nse(&self) -> Option<&ModelResult>
Return the ModelResult with the highest NSE, or None if no
member has metrics attached.
Selection is by MetricsReport::nse only; ties resolve to the
earlier member (stable max_by). Use this after a
scenario run with an observation to pick the best-fitting model.