cmvn.h File Reference

Include dependency graph for cmvn.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Namespaces | |

kaldi | |

This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for mispronunciations detection tasks, the reference: | |

## Functions | |

void | InitCmvnStats (int32 dim, Matrix< double > *stats) |

This function initializes the matrix to dimension 2 by (dim+1); 1st "dim" elements of 1st row are mean stats, 1st "dim" elements of 2nd row are var stats, last element of 1st row is count, last element of 2nd row is zero. More... | |

void | AccCmvnStats (const VectorBase< BaseFloat > &feat, BaseFloat weight, MatrixBase< double > *stats) |

Accumulation from a single frame (weighted). More... | |

void | AccCmvnStats (const MatrixBase< BaseFloat > &feats, const VectorBase< BaseFloat > *weights, MatrixBase< double > *stats) |

Accumulation from a feature file (possibly weighted– useful in excluding silence). More... | |

void | ApplyCmvn (const MatrixBase< double > &stats, bool norm_vars, MatrixBase< BaseFloat > *feats) |

Apply cepstral mean and variance normalization to a matrix of features. More... | |

void | ApplyCmvnReverse (const MatrixBase< double > &stats, bool norm_vars, MatrixBase< BaseFloat > *feats) |

This is as ApplyCmvn, but does so in the reverse sense, i.e. More... | |

void | FakeStatsForSomeDims (const std::vector< int32 > &dims, MatrixBase< double > *stats) |

Modify the stats so that for some dimensions (specified in "dims"), we replace them with "fake" stats that have zero mean and unit variance; this is done to disable CMVN for those dimensions. More... | |