kaldi-native-fbank C++ API
Kaldi-compatible feature extraction C++ API
Loading...
Searching...
No Matches
knf::CmvnOptions Struct Reference

Options matching kaldi's apply-cmvn flags. More...

#include <feature-cmvn.h>

Public Attributes

bool norm_vars = false
 If true, normalize the variances as well: after subtracting the mean, each dimension is divided by its standard deviation.
bool reverse = false
 If true, undo cmvn instead of applying it: the mean is added back and, if norm_vars is true, the standard deviation is multiplied back (kaldi apply-cmvn --reverse).

Detailed Description

Options matching kaldi's apply-cmvn flags.

Used by:
ApplyCmvn().
See also
ApplyCmvn, ComputeCmvnStats

Member Data Documentation

◆ norm_vars

bool knf::CmvnOptions::norm_vars = false

If true, normalize the variances as well: after subtracting the mean, each dimension is divided by its standard deviation.

Requires 2-row stats (kaldi apply-cmvn --norm-vars).

◆ reverse

bool knf::CmvnOptions::reverse = false

If true, undo cmvn instead of applying it: the mean is added back and, if norm_vars is true, the standard deviation is multiplied back (kaldi apply-cmvn --reverse).


The documentation for this struct was generated from the following file:
  • /home/runner/work/kaldi-native-fbank/kaldi-native-fbank/kaldi-native-fbank/csrc/feature-cmvn.h