SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
openswmmvis::plot::FitMetrics Struct Reference

#include <fitmetrics.h>

Collaboration diagram for openswmmvis::plot::FitMetrics:

Static Public Member Functions

static FitMetrics compute (const std::vector< double > &observed, const std::vector< double > &simulated)
 Compute metrics for two timestep-aligned series.
 

Public Attributes

double nse = 0.0
 Nash-Sutcliffe efficiency (≤1, =1 perfect; <0 worse than mean).
 
double r2 = 0.0
 Coefficient of determination, Pearson² (0..1).
 
double rmse = 0.0
 Root mean square error, same units as inputs.
 
double pbias = 0.0
 Percent bias: 100 * Σ(sim-obs) / Σ(obs).
 
int n = 0
 Number of paired non-NaN samples used.
 

Member Function Documentation

◆ compute()

FitMetrics openswmmvis::plot::FitMetrics::compute ( const std::vector< double > &  observed,
const std::vector< double > &  simulated 
)
static

Compute metrics for two timestep-aligned series.

Member Data Documentation

◆ n

int openswmmvis::plot::FitMetrics::n = 0

Number of paired non-NaN samples used.

◆ nse

double openswmmvis::plot::FitMetrics::nse = 0.0

Nash-Sutcliffe efficiency (≤1, =1 perfect; <0 worse than mean).

◆ pbias

double openswmmvis::plot::FitMetrics::pbias = 0.0

Percent bias: 100 * Σ(sim-obs) / Σ(obs).

◆ r2

double openswmmvis::plot::FitMetrics::r2 = 0.0

Coefficient of determination, Pearson² (0..1).

◆ rmse

double openswmmvis::plot::FitMetrics::rmse = 0.0

Root mean square error, same units as inputs.


The documentation for this struct was generated from the following files: