pub struct ServiceComplianceSummary {
pub period_count: usize,
pub node_count: usize,
pub total_samples: usize,
pub within_limits_samples: usize,
pub violating_samples: usize,
pub below_min_samples: usize,
pub above_max_samples: usize,
pub pressure_deficit_integral: f64,
pub pressure_excess_integral: f64,
pub worst_below_min: f64,
pub worst_above_max: f64,
pub max_node_violation_ratio: f64,
}Expand description
Network-level service-compliance summary aggregated across all nodes.
Fields§
§period_count: usizeNumber of reporting periods in the simulation.
node_count: usizeNumber of nodes included in the analysis.
total_samples: usizeTotal number of (node, period) pressure samples.
within_limits_samples: usizeNumber of samples within the acceptable pressure range.
violating_samples: usizeNumber of samples outside the acceptable pressure range.
below_min_samples: usizeNumber of samples below min_pressure.
above_max_samples: usizeNumber of samples above max_pressure.
pressure_deficit_integral: f64Sum of per-node pressure_deficit_integral values.
pressure_excess_integral: f64Sum of per-node pressure_excess_integral values.
worst_below_min: f64Global worst pressure deficit across all nodes (m).
worst_above_max: f64Global worst pressure excess across all nodes (m).
max_node_violation_ratio: f64Highest per-node violation ratio observed across all nodes.
Implementations§
Source§impl ServiceComplianceSummary
impl ServiceComplianceSummary
Sourcepub fn compliance_ratio(&self) -> f64
pub fn compliance_ratio(&self) -> f64
Fraction of all samples that were in-limit, in [0, 1].
Sourcepub fn violation_ratio(&self) -> f64
pub fn violation_ratio(&self) -> f64
Fraction of all samples that were out-of-limit: 1 − compliance_ratio.
Trait Implementations§
Source§impl Clone for ServiceComplianceSummary
impl Clone for ServiceComplianceSummary
Source§fn clone(&self) -> ServiceComplianceSummary
fn clone(&self) -> ServiceComplianceSummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more