Struct fetish_lib::schmear::Schmear [−][src]
Expand description
Represents a (multivariate) probability distribution by its
mean and its covariance.
See also InverseSchmear
, crate::func_schmear::FuncSchmear
Fields
mean: Array1<f32>
covariance: Array2<f32>
Implementations
impl Schmear
[src]
impl Schmear
[src]pub fn from_sample_vectors(vecs: &Vec<Array1<f32>>) -> Schmear
[src]
pub fn from_sample_vectors(vecs: &Vec<Array1<f32>>) -> Schmear
[src]Given a collection of points representing
samples from some distribution, returns the empirical
Schmear
describing the sample distribution.
pub fn from_vector(vec: ArrayView1<'_, R32>) -> Schmear
[src]
pub fn from_vector(vec: ArrayView1<'_, R32>) -> Schmear
[src]Constructs a Schmear
whose mean is the passed vector,
and covariance the zero matrix.
pub fn inverse(&self) -> InverseSchmear
[src]
pub fn inverse(&self) -> InverseSchmear
[src]Constructs the InverseSchmear
which corresponds to this
Schmear
by taking the pseudoinverse_h
of the covariance.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Schmear
impl Send for Schmear
impl Sync for Schmear
impl Unpin for Schmear
impl UnwindSafe for Schmear
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,