public class SetBasedGaussianMixture extends GaussianMixture
All scores and weights are maintained in LogMath log base.
id, logMath, mixtureWeights
Constructor and Description |
---|
SetBasedGaussianMixture(GaussianWeights mixtureWeights,
MixtureComponentSet mixtureComponentSet,
int id) |
Modifier and Type | Method and Description |
---|---|
float[] |
calculateComponentScore(Data feature)
Calculates the scores for each component in the senone.
|
float |
calculateScore(Data feature)
Calculates the score for this senone based upon the given feature.
|
int |
dimension() |
MixtureComponent[] |
getMixtureComponents()
Returns the mixture components associated with this Gaussian
|
int |
numComponents() |
dump, equals, getComponentWeights, getID, getLogComponentWeight, getLogMixtureWeights, hashCode, toString
getScore
public SetBasedGaussianMixture(GaussianWeights mixtureWeights, MixtureComponentSet mixtureComponentSet, int id)
public float calculateScore(Data feature)
ScoreCachingSenone
calculateScore
in class GaussianMixture
feature
- the feature vector to score this senone againstpublic float[] calculateComponentScore(Data feature)
calculateComponentScore
in interface Senone
calculateComponentScore
in class GaussianMixture
feature
- the feature to scorepublic MixtureComponent[] getMixtureComponents()
Senone
getMixtureComponents
in interface Senone
getMixtureComponents
in class GaussianMixture
public int dimension()
dimension
in class GaussianMixture
public int numComponents()
numComponents
in class GaussianMixture
GaussianMixture
.