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§
source§impl<T: Float> IndependentSample<T>
impl<T: Float> IndependentSample<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§
source§impl<T: Clone> Clone for IndependentSample<T>
impl<T: Clone> Clone for IndependentSample<T>
source§fn clone(&self) -> IndependentSample<T>
fn clone(&self) -> IndependentSample<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for IndependentSample<T>
impl<T: Debug> Debug for IndependentSample<T>
source§impl<T: Default> Default for IndependentSample<T>
impl<T: Default> Default for IndependentSample<T>
source§fn default() -> IndependentSample<T>
fn default() -> IndependentSample<T>
Returns the “default value” for a type. Read more
source§impl<'de, T> Deserialize<'de> for IndependentSample<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for IndependentSample<T>where
T: Deserialize<'de>,
source§fn 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§
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