pub struct MorrisDesign { /* private fields */ }Expand description
The points of a Morris screening, path after path, each path’s k + 1 points in order. It is
not serialized: Morris::design rebuilds it, bit for bit, from the screening and its seed.
Implementations§
Source§impl MorrisDesign
impl MorrisDesign
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Whether there are no points; never, as a screening has at least two paths.
Sourcepub fn points(&self) -> Vec<Vec<f64>>
pub fn points(&self) -> Vec<Vec<f64>>
The points, in physical units, path after path: each path’s start, then the point after each step in its order.
Sourcepub fn analyze(&self, outputs: &[f64]) -> Result<Screening, AnalysisError>
pub fn analyze(&self, outputs: &[f64]) -> Result<Screening, AnalysisError>
Each factor’s elementary effects from outputs, the model’s output at each of
MorrisDesign::points in order. A step up of factor i from point x to x′ gives
(y(x′) − y(x))/Δ, a step down (y(x) − y(x′))/Δ, so either is the effect at the lower
point.
§Errors
AnalysisError::Lengthunless there is one output per point.AnalysisError::Outputfor an output that isn’t finite.
Trait Implementations§
Source§impl Clone for MorrisDesign
impl Clone for MorrisDesign
Source§fn clone(&self) -> MorrisDesign
fn clone(&self) -> MorrisDesign
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MorrisDesign
impl Debug for MorrisDesign
Source§impl PartialEq for MorrisDesign
impl PartialEq for MorrisDesign
Source§fn eq(&self, other: &MorrisDesign) -> bool
fn eq(&self, other: &MorrisDesign) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MorrisDesign
Auto Trait Implementations§
impl Freeze for MorrisDesign
impl RefUnwindSafe for MorrisDesign
impl Send for MorrisDesign
impl Sync for MorrisDesign
impl Unpin for MorrisDesign
impl UnsafeUnpin for MorrisDesign
impl UnwindSafe for MorrisDesign
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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