#include <feature-functions.h>
Public Member Functions | |
DeltaFeatures (const DeltaFeaturesOptions &opts) | |
void | Process (const MatrixBase< BaseFloat > &input_feats, int32 frame, VectorBase< BaseFloat > *output_frame) const |
Private Attributes | |
DeltaFeaturesOptions | opts_ |
std::vector< Vector< BaseFloat > > | scales_ |
Definition at line 64 of file feature-functions.h.
|
explicit |
Definition at line 54 of file feature-functions.cc.
References VectorBase< Real >::Dim(), rnnlm::i, rnnlm::j, KALDI_ASSERT, DeltaFeaturesOptions::order, VectorBase< Real >::Scale(), DeltaFeatures::scales_, and DeltaFeaturesOptions::window.
void Process | ( | const MatrixBase< BaseFloat > & | input_feats, |
int32 | frame, | ||
VectorBase< BaseFloat > * | output_frame | ||
) | const |
Definition at line 88 of file feature-functions.cc.
References VectorBase< Real >::AddVec(), VectorBase< Real >::Dim(), rnnlm::i, rnnlm::j, KALDI_ASSERT, MatrixBase< Real >::NumCols(), MatrixBase< Real >::NumRows(), DeltaFeatures::opts_, DeltaFeaturesOptions::order, MatrixBase< Real >::Row(), DeltaFeatures::scales_, and VectorBase< Real >::SetZero().
Referenced by kaldi::ComputeDeltas(), and OnlineDeltaInput::DeltaComputation().
|
private |
Definition at line 79 of file feature-functions.h.
Referenced by DeltaFeatures::Process().
Definition at line 80 of file feature-functions.h.
Referenced by DeltaFeatures::DeltaFeatures(), and DeltaFeatures::Process().