Struct sim::output_analysis::IndependentSample
source · [−]pub struct IndependentSample<T> { /* private fields */ }
Expand description
The independent sample is for independent, identically-distributed (IID)
samples, or where treating the data as an IID sample is determined to be
reasonable. Typically, this will be non-time series data - no
autocorrelation. There are no additional requirements on the data beyond
being IID. For example, there are no normality assumptions. The
TerminatingSimulationOutput
or SteadyStateOutput
structs are
available for non-IID output analysis.
Implementations
sourceimpl<T: Float> IndependentSample<T> where
f64: Into<T>,
impl<T: Float> IndependentSample<T> where
f64: Into<T>,
sourcepub fn post(points: Vec<T>) -> Result<IndependentSample<T>, SimulationError>
pub fn post(points: Vec<T>) -> Result<IndependentSample<T>, SimulationError>
This constructor method creates an IndependentSample
from a vector
of floating point values.
sourcepub fn confidence_interval_mean(
&self,
alpha: T
) -> Result<ConfidenceInterval<T>, SimulationError>
pub fn confidence_interval_mean(
&self,
alpha: T
) -> Result<ConfidenceInterval<T>, SimulationError>
Calculate the confidence interval of the mean, base on the provided value of alpha.
sourcepub fn point_estimate_mean(&self) -> T
pub fn point_estimate_mean(&self) -> T
Return the sample mean.
Trait Implementations
sourceimpl<T: Clone> Clone for IndependentSample<T>
impl<T: Clone> Clone for IndependentSample<T>
sourcefn clone(&self) -> IndependentSample<T>
fn clone(&self) -> IndependentSample<T>
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<T: Debug> Debug for IndependentSample<T>
impl<T: Debug> Debug for IndependentSample<T>
sourceimpl<T: Default> Default for IndependentSample<T>
impl<T: Default> Default for IndependentSample<T>
sourcefn default() -> IndependentSample<T>
fn default() -> IndependentSample<T>
Returns the “default value” for a type. Read more
sourceimpl<'de, T> Deserialize<'de> for IndependentSample<T> where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for IndependentSample<T> where
T: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for IndependentSample<T> where
T: RefUnwindSafe,
impl<T> Send for IndependentSample<T> where
T: Send,
impl<T> Sync for IndependentSample<T> where
T: Sync,
impl<T> Unpin for IndependentSample<T> where
T: Unpin,
impl<T> UnwindSafe for IndependentSample<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more