Public Member Functions | |
CovarianceStats (int32 dim) | |
void | GetTotalCovar (SpMatrix< double > *tot_covar) const |
get total covariance, normalized per number of frames. More... | |
void | GetWithinCovar (SpMatrix< double > *within_covar) |
void | AccStats (const Matrix< double > &utts_of_this_spk) |
bool | SingularTotCovar () |
Will return Empty() if the within-class covariance matrix would be zero. More... | |
bool | Empty () |
std::string | Info () |
int32 | Dim () |
void | AddStats (const CovarianceStats &other) |
Private Member Functions | |
KALDI_DISALLOW_COPY_AND_ASSIGN (CovarianceStats) | |
Private Attributes | |
SpMatrix< double > | tot_covar_ |
SpMatrix< double > | between_covar_ |
int32 | num_spk_ |
int32 | num_utt_ |
Definition at line 30 of file ivector-compute-lda.cc.
|
inline |
Definition at line 32 of file ivector-compute-lda.cc.
|
inline |
Definition at line 49 of file ivector-compute-lda.cc.
References SpMatrix< Real >::AddMat2(), VectorBase< Real >::AddRowSumMat(), SpMatrix< Real >::AddVec2(), CovarianceStats::between_covar_, CovarianceStats::Dim(), kaldi::kTrans, CovarianceStats::num_spk_, CovarianceStats::num_utt_, MatrixBase< Real >::NumRows(), and CovarianceStats::tot_covar_.
Referenced by kaldi::ComputeLdaTransform().
|
inline |
Definition at line 68 of file ivector-compute-lda.cc.
References SpMatrix< Real >::AddSp(), CovarianceStats::between_covar_, CovarianceStats::KALDI_DISALLOW_COPY_AND_ASSIGN(), CovarianceStats::num_spk_, CovarianceStats::num_utt_, and CovarianceStats::tot_covar_.
|
inline |
Definition at line 66 of file ivector-compute-lda.cc.
References PackedMatrix< Real >::NumRows(), and CovarianceStats::tot_covar_.
Referenced by CovarianceStats::AccStats(), and CovarianceStats::SingularTotCovar().
|
inline |
Definition at line 60 of file ivector-compute-lda.cc.
References CovarianceStats::num_spk_, and CovarianceStats::num_utt_.
Referenced by kaldi::ComputeLdaTransform().
|
inline |
get total covariance, normalized per number of frames.
Definition at line 38 of file ivector-compute-lda.cc.
References KALDI_ASSERT, CovarianceStats::num_utt_, PackedMatrix< Real >::Scale(), and CovarianceStats::tot_covar_.
Referenced by kaldi::ComputeLdaTransform().
|
inline |
Definition at line 43 of file ivector-compute-lda.cc.
References SpMatrix< Real >::AddSp(), CovarianceStats::between_covar_, KALDI_ASSERT, CovarianceStats::num_spk_, CovarianceStats::num_utt_, PackedMatrix< Real >::Scale(), and CovarianceStats::tot_covar_.
Referenced by kaldi::ComputeLdaTransform().
|
inline |
Definition at line 61 of file ivector-compute-lda.cc.
References CovarianceStats::num_spk_, and CovarianceStats::num_utt_.
Referenced by kaldi::ComputeLdaTransform().
|
private |
Referenced by CovarianceStats::AddStats().
|
inline |
Will return Empty() if the within-class covariance matrix would be zero.
Definition at line 59 of file ivector-compute-lda.cc.
References CovarianceStats::Dim(), and CovarianceStats::num_utt_.
Referenced by kaldi::ComputeLdaTransform().
|
private |
Definition at line 77 of file ivector-compute-lda.cc.
Referenced by CovarianceStats::AccStats(), CovarianceStats::AddStats(), and CovarianceStats::GetWithinCovar().
|
private |
Definition at line 78 of file ivector-compute-lda.cc.
Referenced by CovarianceStats::AccStats(), CovarianceStats::AddStats(), CovarianceStats::Empty(), CovarianceStats::GetWithinCovar(), and CovarianceStats::Info().
|
private |
Definition at line 79 of file ivector-compute-lda.cc.
Referenced by CovarianceStats::AccStats(), CovarianceStats::AddStats(), CovarianceStats::Empty(), CovarianceStats::GetTotalCovar(), CovarianceStats::GetWithinCovar(), CovarianceStats::Info(), and CovarianceStats::SingularTotCovar().
|
private |
Definition at line 76 of file ivector-compute-lda.cc.
Referenced by CovarianceStats::AccStats(), CovarianceStats::AddStats(), CovarianceStats::Dim(), CovarianceStats::GetTotalCovar(), and CovarianceStats::GetWithinCovar().