pub struct FphaDeviationPointRow {
pub hydro_id: EntityId,
pub stage_id: Option<i32>,
pub v: f64,
pub q: f64,
pub fph_exact: f64,
pub fpha_fitted: f64,
pub deviation: f64,
pub relative: f64,
}Expand description
A single per-sampled-point computed-FPHA fit-deviation row at spillage = 0.
§Examples
use cobre_io::extensions::FphaDeviationPointRow;
use cobre_core::EntityId;
let row = FphaDeviationPointRow {
hydro_id: EntityId::from(66),
stage_id: Some(3),
v: 14_500.0,
q: 1_200.0,
fph_exact: 980.5,
fpha_fitted: 985.0,
deviation: 4.5,
relative: 0.0046,
};
assert_eq!(row.hydro_id, EntityId::from(66));Fields§
§hydro_id: EntityIdHydro plant this deviation point belongs to.
stage_id: Option<i32>Stage the covering fit applies to. None means a single fit for all stages.
v: f64Volume grid coordinate (hm³).
q: f64Turbined-flow grid coordinate (m³/s).
fph_exact: f64Exact production-function value at (v, q, 0.0) (MW).
fpha_fitted: f64Fitted min-envelope value at (v, q, 0.0) (MW).
deviation: f64Signed residual fpha_fitted − fph_exact (MW).
relative: f64|deviation| relative to the grid’s peak exact generation (dimensionless).
Trait Implementations§
Source§impl Clone for FphaDeviationPointRow
impl Clone for FphaDeviationPointRow
Source§fn clone(&self) -> FphaDeviationPointRow
fn clone(&self) -> FphaDeviationPointRow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FphaDeviationPointRow
impl Debug for FphaDeviationPointRow
Source§impl PartialEq for FphaDeviationPointRow
impl PartialEq for FphaDeviationPointRow
impl StructuralPartialEq for FphaDeviationPointRow
Auto Trait Implementations§
impl Freeze for FphaDeviationPointRow
impl RefUnwindSafe for FphaDeviationPointRow
impl Send for FphaDeviationPointRow
impl Sync for FphaDeviationPointRow
impl Unpin for FphaDeviationPointRow
impl UnsafeUnpin for FphaDeviationPointRow
impl UnwindSafe for FphaDeviationPointRow
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more