Skip to content

lazymatrix::RowNormalizationParams ​

LazyMatrix for Rust · 0.9.0

Source

rust
pub struct RowNormalizationParams<F = f64>

Fitted normalization for particular rows of a matrix.

Present vectors have one entry per row, and scales are nonzero. Explicit parameters preserve negative scales and nonfinite values. Parameters may be reapplied to matrices with the same row count, but they describe the fitted rows, not a transformation learned across samples. Fit new samples' row parameters independently.

Inherent implementation ​

Source

rust
impl<F: lazymatrix::Scalar> RowNormalizationParams<F>

centers ​

rust
pub fn centers(&self) -> Option<&[F]>

Source

Fitted row centers, if centering is active.

from_parts ​

rust
pub fn from_parts(
    nrows: usize,
    centers: Option<Vec<F>>,
    scales: Option<Vec<F>>
) -> Self

Source

Construct validated explicit parameters without changing their values.

Panics ​

Panics if either vector has a different length from nrows, or if a scale is exact positive or negative zero. A zero-scale panic reports the zero-based row index.

into_parts ​

rust
pub fn into_parts(self) -> RowNormalizationStats<F>

Source

Recover the fitted centers and scales without copying.

nrows ​

rust
pub fn nrows(&self) -> usize

Source

Number of rows these parameters describe.

scales ​

rust
pub fn scales(&self) -> Option<&[F]>

Source

Fitted row scales, if scaling is active.

Implementation of Clone ​

Source

rust
impl<F: core::clone::Clone> Clone for RowNormalizationParams<F>

clone ​

rust
fn clone(&self) -> Self

Source

Implementation of Debug ​

Source

rust
impl<F: core::fmt::Debug> Debug for RowNormalizationParams<F>

fmt ​

rust
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result

Source

Implementation of PartialEq ​

Source

rust
impl<F: core::cmp::PartialEq> PartialEq for RowNormalizationParams<F>

eq ​

rust
fn eq(&self, other: &Self) -> bool

Source

Implementation of StructuralPartialEq ​

Source

rust
impl<F: core::cmp::PartialEq> StructuralPartialEq for RowNormalizationParams<F>

Implementation of Freeze ​

rust
impl<F> Freeze for RowNormalizationParams<F> where Option<Vec<F>>: Freeze + Freeze

Implementation of RefUnwindSafe ​

rust
impl<F> RefUnwindSafe for RowNormalizationParams<F> where Option<Vec<F>>: RefUnwindSafe + RefUnwindSafe

Implementation of Send ​

rust
impl<F> Send for RowNormalizationParams<F> where Option<Vec<F>>: Send + Send

Implementation of Sync ​

rust
impl<F> Sync for RowNormalizationParams<F> where Option<Vec<F>>: Sync + Sync

Implementation of Unpin ​

rust
impl<F> Unpin for RowNormalizationParams<F> where Option<Vec<F>>: Unpin + Unpin

Implementation of UnsafeUnpin ​

rust
impl<F> UnsafeUnpin for RowNormalizationParams<F> where Option<Vec<F>>: UnsafeUnpin + UnsafeUnpin

Implementation of UnwindSafe ​

rust
impl<F> UnwindSafe for RowNormalizationParams<F> where Option<Vec<F>>: UnwindSafe + UnwindSafe

Implementation of Any ​

rust
impl<T> Any for T where T: 'static + ?Sized

Implementation of Borrow ​

rust
impl<T> Borrow<T> for T where T: ?Sized

Implementation of BorrowMut ​

rust
impl<T> BorrowMut<T> for T where T: ?Sized

Implementation of ByRef ​

rust
impl<T> ByRef<T> for T

Implementation of CastableFrom ​

rust
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT where ST: ?Sized, DT: ?Sized

Implementation of CastableFrom ​

rust
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT where ST: ?Sized, DT: ?Sized

Implementation of CloneToUninit ​

rust
impl<T> CloneToUninit for T where T: Clone

Implementation of From ​

rust
impl<T> From<T> for T

Implementation of Imply ​

rust
impl<T, U> Imply<T> for U where T: ?Sized, U: ?Sized

Implementation of Into ​

rust
impl<T, U> Into<U> for T where U: From<T>

Implementation of IntoEither ​

rust
impl<T> IntoEither for T

Implementation of Pointable ​

rust
impl<T> Pointable for T

Implementation of Read ​

rust
impl<T> Read<Exclusive, BecauseExclusive> for T where T: ?Sized

Implementation of Same ​

rust
impl<T> Same for T

Implementation of Scalar ​

rust
impl<T> Scalar for T where T: 'static + Clone + PartialEq + Debug

Implementation of SupersetOf ​

rust
impl<SS, SP> SupersetOf<SS> for SP where SS: SubsetOf<SP>

Implementation of ToOwned ​

rust
impl<T> ToOwned for T where T: Clone

Implementation of TryFrom ​

rust
impl<T, U> TryFrom<U> for T where U: Into<T>

Implementation of TryInto ​

rust
impl<T, U> TryInto<U> for T where U: TryFrom<T>

Released under the MIT and Apache 2.0 licenses.