pub struct SobolDesign { /* private fields */ }Expand description
The points of a Sobol’ analysis, row after row: A’s row, B’s, then A_B⁽ⁱ⁾’s for each
factor i in order, k + 2 points a row. It is not serialized: Sobol::design rebuilds
it, bit for bit, from the analysis and its seed.
Implementations§
Source§impl SobolDesign
impl SobolDesign
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Whether there are no points; never, as an analysis has at least two rows.
Sourcepub fn points(&self) -> Vec<Vec<f64>>
pub fn points(&self) -> Vec<Vec<f64>>
The points, in physical units, row after row: A’s, B’s, then A_B⁽ⁱ⁾’s for each
factor i.
Sourcepub fn analyze(&self, outputs: &[f64]) -> Result<SobolIndices, AnalysisError>
pub fn analyze(&self, outputs: &[f64]) -> Result<SobolIndices, AnalysisError>
Each factor’s indices from outputs, the model’s output at each of
SobolDesign::points in order (the module’s docs give the estimates).
§Errors
AnalysisError::Lengthunless there is one output per point.AnalysisError::Outputfor an output that isn’t finite.AnalysisError::Domainif the outputs ofAandBare all the same, as with no variance there is nothing to share out, or so spread that their variance overflows; or if an index or its standard error overflows, from a mixed point’s output far beyond the others.
Trait Implementations§
Source§impl Clone for SobolDesign
impl Clone for SobolDesign
Source§fn clone(&self) -> SobolDesign
fn clone(&self) -> SobolDesign
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 SobolDesign
impl Debug for SobolDesign
Source§impl PartialEq for SobolDesign
impl PartialEq for SobolDesign
Source§fn eq(&self, other: &SobolDesign) -> bool
fn eq(&self, other: &SobolDesign) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SobolDesign
Auto Trait Implementations§
impl Freeze for SobolDesign
impl RefUnwindSafe for SobolDesign
impl Send for SobolDesign
impl Sync for SobolDesign
impl Unpin for SobolDesign
impl UnsafeUnpin for SobolDesign
impl UnwindSafe for SobolDesign
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