pub struct MeasurementModel { /* private fields */ }Expand description
One resolved CurrentFunctional per
measurement, in input order.
None for a voltage row, which reads the state directly and has no
functional, and for a target that does not resolve in this network.
Implementations§
Source§impl MeasurementModel
impl MeasurementModel
Sourcepub fn new(measurements: &[Measurement], net: &SeNetwork) -> Self
pub fn new(measurements: &[Measurement], net: &SeNetwork) -> Self
Resolves every measurement’s target once.
Valid for as long as the network and the measurement set’s structure
are unchanged — the same condition
PersistentEstimator already states for its
cached factorization, since both depend on which quantities are measured
where and neither on their values.
Sourcepub fn is_live(&self, measurement: usize) -> bool
pub fn is_live(&self, measurement: usize) -> bool
Whether measurement i describes anything — see Self::live.
pub fn functional(&self, measurement: usize) -> Option<&CurrentFunctional>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Auto Trait Implementations§
impl Freeze for MeasurementModel
impl RefUnwindSafe for MeasurementModel
impl Send for MeasurementModel
impl Sync for MeasurementModel
impl Unpin for MeasurementModel
impl UnsafeUnpin for MeasurementModel
impl UnwindSafe for MeasurementModel
Blanket Implementations§
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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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