#include <feature-functions.h>
Public Member Functions | |
ShiftedDeltaFeatures (const ShiftedDeltaFeaturesOptions &opts) | |
void | Process (const MatrixBase< BaseFloat > &input_feats, int32 frame, SubVector< BaseFloat > *output_frame) const |
Private Attributes | |
ShiftedDeltaFeaturesOptions | opts_ |
Vector< BaseFloat > | scales_ |
Definition at line 100 of file feature-functions.h.
|
explicit |
Definition at line 113 of file feature-functions.cc.
References rnnlm::j, KALDI_ASSERT, ShiftedDeltaFeatures::scales_, and ShiftedDeltaFeaturesOptions::window.
void Process | ( | const MatrixBase< BaseFloat > & | input_feats, |
int32 | frame, | ||
SubVector< BaseFloat > * | output_frame | ||
) | const |
Definition at line 129 of file feature-functions.cc.
References VectorBase< Real >::AddVec(), ShiftedDeltaFeaturesOptions::block_shift, VectorBase< Real >::Dim(), rnnlm::i, rnnlm::j, KALDI_ASSERT, ShiftedDeltaFeaturesOptions::num_blocks, MatrixBase< Real >::NumCols(), MatrixBase< Real >::NumRows(), ShiftedDeltaFeatures::opts_, MatrixBase< Real >::Row(), ShiftedDeltaFeatures::scales_, and VectorBase< Real >::SetZero().
Referenced by kaldi::ComputeShiftedDeltas().
|
private |
Definition at line 114 of file feature-functions.h.
Referenced by ShiftedDeltaFeatures::Process().
Definition at line 115 of file feature-functions.h.
Referenced by ShiftedDeltaFeatures::Process(), and ShiftedDeltaFeatures::ShiftedDeltaFeatures().