pub struct Theta { /* private fields */ }
Expand description
Theta is a structure that holds the support points These represent the joint population parameter distribution
Each row represents a support points, and each column a parameter
Implementations§
Source§impl Theta
impl Theta
pub fn new() -> Self
Sourcepub fn matrix(&self) -> &Mat<f64>
pub fn matrix(&self) -> &Mat<f64>
Get the matrix containing parameter values
The matrix is a 2D array where each row represents a support point, and each column a parameter
Sourcepub fn set_matrix(&mut self, matrix: Mat<f64>)
pub fn set_matrix(&mut self, matrix: Mat<f64>)
Set the matrix containing parameter values
Sourcepub fn nspp(&self) -> usize
pub fn nspp(&self) -> usize
Get the number of support points, equal to the number of rows in the matrix
Sourcepub fn param_names(&self) -> Vec<String>
pub fn param_names(&self) -> Vec<String>
Get the parameter names
Trait Implementations§
impl StructuralPartialEq for Theta
Auto Trait Implementations§
impl Freeze for Theta
impl RefUnwindSafe for Theta
impl Send for Theta
impl Sync for Theta
impl Unpin for Theta
impl UnwindSafe for Theta
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,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.