public class GMMFromFeatures extends Object implements Function<LocalFeatureList<? extends LocalFeature<?,? extends FeatureVector>>,MixtureOfGaussians>
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_COMPONENTS
default number of guassians to train agains
|
static GaussianMixtureModelEM.CovarianceType |
DEFAULT_COVARIANCE
default covariance type
|
Constructor and Description |
---|
GMMFromFeatures()
Defaults to
DEFAULT_COMPONENTS and |
GMMFromFeatures(GaussianMixtureModelEM.CovarianceType type) |
GMMFromFeatures(int nComps) |
GMMFromFeatures(int nComps,
GaussianMixtureModelEM.CovarianceType type) |
Modifier and Type | Method and Description |
---|---|
MixtureOfGaussians |
apply(LocalFeatureList<? extends LocalFeature<?,? extends FeatureVector>> features)
Apply the function to the input argument and return the result.
|
public static final int DEFAULT_COMPONENTS
public static final GaussianMixtureModelEM.CovarianceType DEFAULT_COVARIANCE
public GMMFromFeatures()
DEFAULT_COMPONENTS
andpublic GMMFromFeatures(GaussianMixtureModelEM.CovarianceType type)
type
- public GMMFromFeatures(int nComps)
nComps
- public GMMFromFeatures(int nComps, GaussianMixtureModelEM.CovarianceType type)
nComps
- type
- public MixtureOfGaussians apply(LocalFeatureList<? extends LocalFeature<?,? extends FeatureVector>> features)
Function
apply
in interface Function<LocalFeatureList<? extends LocalFeature<?,? extends FeatureVector>>,MixtureOfGaussians>
features
- the input object