SlidingWindowCmnOptions Struct Reference

#include <feature-functions.h>

Collaboration diagram for SlidingWindowCmnOptions:

Public Member Functions

 SlidingWindowCmnOptions ()
 
void Register (OptionsItf *opts)
 
void Check () const
 

Public Attributes

int32 cmn_window
 
int32 min_window
 
int32 max_warnings
 
bool normalize_variance
 
bool center
 

Detailed Description

Definition at line 158 of file feature-functions.h.

Constructor & Destructor Documentation

◆ SlidingWindowCmnOptions()

Member Function Documentation

◆ Check()

void Check ( ) const

Definition at line 242 of file feature-functions.cc.

References KALDI_ASSERT.

Referenced by kaldi::SlidingWindowCmnInternal().

242  {
244  if (center)
246  // else ignored so value doesn't matter.
247 }
#define KALDI_ASSERT(cond)
Definition: kaldi-error.h:185

◆ Register()

void Register ( OptionsItf opts)
inline

Definition at line 172 of file feature-functions.h.

References OptionsItf::Register(), and kaldi::SlidingWindowCmn().

Referenced by main().

172  {
173  opts->Register("cmn-window", &cmn_window, "Window in frames for running "
174  "average CMN computation");
175  opts->Register("min-cmn-window", &min_window, "Minimum CMN window "
176  "used at start of decoding (adds latency only at start). "
177  "Only applicable if center == false, ignored if center==true");
178  opts->Register("max-warnings", &max_warnings, "Maximum warnings to report "
179  "per utterance. 0 to disable, -1 to show all.");
180  opts->Register("norm-vars", &normalize_variance, "If true, normalize "
181  "variance to one."); // naming this as in apply-cmvn.cc
182  opts->Register("center", &center, "If true, use a window centered on the "
183  "current frame (to the extent possible, modulo end effects). "
184  "If false, window is to the left.");
185  }

Member Data Documentation

◆ center

bool center

◆ cmn_window

int32 cmn_window

◆ max_warnings

int32 max_warnings

Definition at line 161 of file feature-functions.h.

Referenced by kaldi::SlidingWindowCmnInternal().

◆ min_window

int32 min_window

◆ normalize_variance

bool normalize_variance

The documentation for this struct was generated from the following files: