Struct sim::output_analysis::TerminatingSimulationOutput
source · [−]pub struct TerminatingSimulationOutput<T> { /* private fields */ }
Expand description
Terminating simulations are useful when the initial and final conditions of a simulation are known, and set deliberately to match real world conditions. For example, a simulation spanning a 9:00 to 17:00 work day might use the terminating simulation approach to simulation experiments and analysis. These initial and final conditions are known and of interest.
Implementations
sourceimpl<T: Float> TerminatingSimulationOutput<T>
impl<T: Float> TerminatingSimulationOutput<T>
sourcepub fn post(time_series: Vec<T>) -> TerminatingSimulationOutput<T>
pub fn post(time_series: Vec<T>) -> TerminatingSimulationOutput<T>
This TerminatingSimulationOutput
constructor method creates a new
terminating simulation output, with a single replication. The
put_time_series
method is then used to load additional simulation
replications (time series).
sourcepub fn put_time_series(&mut self, time_series: Vec<T>)
pub fn put_time_series(&mut self, time_series: Vec<T>)
This method loads a single simulation replication output into the
TerminatingSimulationOutput
object. Typically, simulation analysis
will require many replications, and thus many put_time_series
calls.
Trait Implementations
sourceimpl<T: Clone> Clone for TerminatingSimulationOutput<T>
impl<T: Clone> Clone for TerminatingSimulationOutput<T>
sourcefn clone(&self) -> TerminatingSimulationOutput<T>
fn clone(&self) -> TerminatingSimulationOutput<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 TerminatingSimulationOutput<T>
impl<T: Debug> Debug for TerminatingSimulationOutput<T>
sourceimpl<T: Default> Default for TerminatingSimulationOutput<T>
impl<T: Default> Default for TerminatingSimulationOutput<T>
sourcefn default() -> TerminatingSimulationOutput<T>
fn default() -> TerminatingSimulationOutput<T>
Returns the “default value” for a type. Read more
sourceimpl<'de, T> Deserialize<'de> for TerminatingSimulationOutput<T> where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for TerminatingSimulationOutput<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 TerminatingSimulationOutput<T> where
T: RefUnwindSafe,
impl<T> Send for TerminatingSimulationOutput<T> where
T: Send,
impl<T> Sync for TerminatingSimulationOutput<T> where
T: Sync,
impl<T> Unpin for TerminatingSimulationOutput<T> where
T: Unpin,
impl<T> UnwindSafe for TerminatingSimulationOutput<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