Documentation ¶
Index ¶
- type GMM
- func (g *GMM) Copy(gmm *GMM)
- func (g *GMM) CopyFeatureData(gmm *GMM) error
- func (g *GMM) DupModel(gmm *GMM)
- func (g *GMM) EM(mixtures int) (int, error)
- func (g *GMM) LMixProb(buffer []float32, mixIndex int) float64
- func (g *GMM) LProb(featureBuf [][]float32, start, length int64) float64
- func (g *GMM) LoadModel(filename string) error
- func (g *GMM) LogAdd(lvar1 float64, lvar2 float64) float64
- func (g *GMM) SaveModel(filename string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GMM ¶
type GMM struct { Frames int // number of total frames FeatureData [][]float32 // feature buffer VectorSize int // Vector size 1 Mixtures int // Mixtures of the GMM 1 MixtureWeight []float64 // weight of each mixture[mixture] 1 Mean [][]float64 // mean vector [mixture,dimension] 1 Covar [][]float64 // covariance (diagonal) [mixture,dimension] 1 // contains filtered or unexported fields }
func (*GMM) CopyFeatureData ¶
func (*GMM) LMixProb ¶
Return the log likelihood of the given vector to the given mixture (the score should be multiplied with the mixture weight). FeatureData : pointer to the feature vector in float MixIndex : Mixture index Return Value: The log-likelihood in float64
Click to show internal directories.
Click to hide internal directories.