public class GmmDiscretizer extends Object implements Discretizer
Constructor and Description |
---|
GmmDiscretizer(GMM model,
boolean extraZeroClass)
This constructs a
Discretizer using the specified mixture model. |
Modifier and Type | Method and Description |
---|---|
int |
discretize(int value)
This discretizes a value by returning the mean of that gaussian component that has maximum probability for it.
|
int[] |
getPossibleValues()
Returns all poosible discretizations values can be mapped to.
|
static GmmDiscretizer |
trainDiscretizer(List<Integer> values,
int nrClasses,
boolean extraZero)
This trains a gaussian mixture model having the specified number of components.
|
public GmmDiscretizer(GMM model, boolean extraZeroClass)
Discretizer
using the specified mixture model.model
- GMM to be usedextraZeroClass
- specifies if zeros should be treated independentlypublic static GmmDiscretizer trainDiscretizer(List<Integer> values, int nrClasses, boolean extraZero)
values
- the data the model is trained withnrClasses
- number of components the mixture will haveextraZero
- specifies if zeroes are to be treated seperately from mixture model training and application.public int discretize(int value)
discretize
in interface Discretizer
value
- the value to be discretizedpublic int[] getPossibleValues()
getPossibleValues
in interface Discretizer
Copyright © 2000–2016 DFKI GmbH. All rights reserved.