pub struct NcsModel {
pub ncs_id: EntityId,
pub stage_id: i32,
pub mean: f64,
pub std: f64,
}Expand description
Per-stage normal noise model parameters for a non-controllable source.
Loaded from scenarios/non_controllable_stats.parquet. Each row provides
the mean and standard deviation of the stochastic availability factor for
one NCS entity at one stage. The scenario pipeline uses these parameters
to generate per-scenario availability realisations.
The noise model is: A_r = max_gen * clamp(mean + std * epsilon, 0, 1),
where epsilon ~ N(0,1) and mean, std are dimensionless availability
factors in [0, 1].
The System holds a Vec<NcsModel> sorted by (ncs_id, stage_id).
§Examples
use cobre_core::{EntityId, scenario::NcsModel};
let model = NcsModel {
ncs_id: EntityId(3),
stage_id: 0,
mean: 0.5,
std: 0.1,
};
assert_eq!(model.mean, 0.5);Fields§
§ncs_id: EntityIdNCS entity identifier matching NonControllableSource.id.
stage_id: i32Stage (0-based index within System::stages) this model applies to.
mean: f64Mean availability factor [dimensionless, in [0, 1]].
std: f64Standard deviation of the availability factor [dimensionless, >= 0].