Struct soco::model::data_center::loads::PredictedLoadProfile
source · [−]pub struct PredictedLoadProfile(_);
Expand description
Encapsulates the load of $e$ types as multiple samples per type.
Implementations
sourceimpl PredictedLoadProfile
impl PredictedLoadProfile
sourcepub fn raw(l: Vec<Vec<f64>>) -> PredictedLoadProfile
pub fn raw(l: Vec<Vec<f64>>) -> PredictedLoadProfile
Creates a new predicted load profile from a raw vector of vectors.
sourcepub fn new(l: Vec<Vec<N64>>) -> PredictedLoadProfile
pub fn new(l: Vec<Vec<N64>>) -> PredictedLoadProfile
Creates a new predicted load profile from a vector of vectors.
sourcepub fn into_load_profile(self) -> LoadProfile
pub fn into_load_profile(self) -> LoadProfile
Converts predicted load profile to a load profile.
sourcepub fn sample_load_profiles(&self) -> Vec<LoadProfile>
pub fn sample_load_profiles(&self) -> Vec<LoadProfile>
Samples load profiles.
Trait Implementations
sourceimpl Clone for PredictedLoadProfile
impl Clone for PredictedLoadProfile
sourcefn clone(&self) -> PredictedLoadProfile
fn clone(&self) -> PredictedLoadProfile
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PredictedLoadProfile
impl Debug for PredictedLoadProfile
sourceimpl<'a> Deserialize<'a> for PredictedLoadProfile
impl<'a> Deserialize<'a> for PredictedLoadProfile
sourcefn deserialize<D: Deserializer<'a>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'a>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl FromIterator<Vec<NoisyFloat<f64, NumChecker>, Global>> for PredictedLoadProfile
impl FromIterator<Vec<NoisyFloat<f64, NumChecker>, Global>> for PredictedLoadProfile
sourceimpl FromParallelIterator<Vec<NoisyFloat<f64, NumChecker>, Global>> for PredictedLoadProfile
impl FromParallelIterator<Vec<NoisyFloat<f64, NumChecker>, Global>> for PredictedLoadProfile
sourcefn from_par_iter<I>(iter: I) -> Self where
I: IntoParallelIterator<Item = Vec<N64>>,
fn from_par_iter<I>(iter: I) -> Self where
I: IntoParallelIterator<Item = Vec<N64>>,
Creates an instance of the collection from the parallel iterator par_iter
. Read more
sourceimpl<'a> FromPyObject<'a> for PredictedLoadProfile
impl<'a> FromPyObject<'a> for PredictedLoadProfile
sourceimpl Index<usize> for PredictedLoadProfile
impl Index<usize> for PredictedLoadProfile
sourceimpl<'a> IntoParallelIterator for &'a PredictedLoadProfile
impl<'a> IntoParallelIterator for &'a PredictedLoadProfile
sourceimpl IntoPy<Py<PyAny>> for PredictedLoadProfile
impl IntoPy<Py<PyAny>> for PredictedLoadProfile
sourceimpl Serialize for PredictedLoadProfile
impl Serialize for PredictedLoadProfile
Auto Trait Implementations
impl RefUnwindSafe for PredictedLoadProfile
impl Send for PredictedLoadProfile
impl Sync for PredictedLoadProfile
impl Unpin for PredictedLoadProfile
impl UnwindSafe for PredictedLoadProfile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'data, I> IntoParallelRefIterator<'data> for I where
I: 'data + ?Sized,
&'data I: IntoParallelIterator,
impl<'data, I> IntoParallelRefIterator<'data> for I where
I: 'data + ?Sized,
&'data I: IntoParallelIterator,
type Iter = <&'data I as IntoParallelIterator>::Iter
type Iter = <&'data I as IntoParallelIterator>::Iter
The type of the parallel iterator that will be returned.
type Item = <&'data I as IntoParallelIterator>::Item
type Item = <&'data I as IntoParallelIterator>::Item
The type of item that the parallel iterator will produce.
This will typically be an &'data T
reference type. Read more
sourcefn par_iter(&'data self) -> <I as IntoParallelRefIterator<'data>>::Iter
fn par_iter(&'data self) -> <I as IntoParallelRefIterator<'data>>::Iter
Converts self
into a parallel iterator. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more