pub struct ModelResult {
pub model_type: ModelType,
pub name: String,
pub discharge: Vec<f64>,
pub metrics: Option<MetricsReport>,
}Expand description
A single model run result: discharge hydrograph + optional evaluation metrics.
Produced by run_scenario for each model in the scenario’s models
list. The discharge series has one entry per forcing time-step
(m³/s, identical length to Scenario::forcing); metrics is Some(..)
only when the scenario carried an observed series of matching length,
in which case it holds NSE / KGE / RMSE / PBIAS / R² + GB/T 22482
qualification computed via compute_metrics_gbt.
Fields§
§model_type: ModelTypeWhich model produced this result (one of Xinanjiang / Topmodel /
Swat / Apicont).
name: StringHuman-readable model name (matches ModelType::name() — e.g.
"新安江", "TOPMODEL", "SWAT", "API-CONT").
discharge: Vec<f64>Discharge hydrograph, m³/s per time-step. Length =
Scenario::forcing.len().
metrics: Option<MetricsReport>Per-metric evaluation report. None when no observed series was
supplied or its length did not match discharge.len().