[][src]Struct nmf::FixedTemplateNmf

pub struct FixedTemplateNmf<'a> { /* fields omitted */ }

Holds state of NMF operations. Templates are not updated and assumed to be fixed. This is useful for determining activations from an input against a fixed template library.

For example, extracting played notes on a guitar.

Implementations

impl<'a> FixedTemplateNmf<'a>[src]

pub fn new(
    templates: Matrix<f32>,
    activation_coef: Matrix<f32>,
    input: &'a Matrix<f32>,
    beta: f32
) -> FixedTemplateNmf<'a>
[src]

pub fn update_activation_coef(&mut self)[src]

pub fn get_activation_coef(&'a self) -> &'a Matrix<f32>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for FixedTemplateNmf<'a>

impl<'a> Send for FixedTemplateNmf<'a>

impl<'a> Sync for FixedTemplateNmf<'a>

impl<'a> Unpin for FixedTemplateNmf<'a>

impl<'a> UnwindSafe for FixedTemplateNmf<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.