28 int32 signal_length = 400000 +
Rand() % 40000;
29 int32 filter_length = 1000 +
Rand() % 100;
43 int32 signal_length = 4000 +
Rand() % 400;
58 using namespace kaldi;
This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for...
void UnitTestFFTbasedConvolution()
void FFTbasedConvolveSignals(const Vector< BaseFloat > &filter, Vector< BaseFloat > *signal)
void FFTbasedBlockConvolveSignals(const Vector< BaseFloat > &filter, Vector< BaseFloat > *signal)
MatrixIndexT Dim() const
Returns the dimension of the vector.
int Rand(struct RandomState *state)
void SetRandn()
Set vector to random normally-distributed noise.
A class representing a vector.
void ConvolveSignals(const Vector< BaseFloat > &filter, Vector< BaseFloat > *signal)
static void AssertEqual(float a, float b, float relative_tolerance=0.001)
assert abs(a - b) <= relative_tolerance * (abs(a)+abs(b))
void UnitTestFFTbasedBlockConvolution()