public class GaussianWeightSet extends WeightSet
Constructor and Description |
---|
GaussianWeightSet(String type)
Constructs a gaussian weight set with the specified type.
|
Modifier and Type | Method and Description |
---|---|
protected FeatureSet |
computeMu()
Calculates the mu value for Gaussian distribution by taking the
mean of each feature type.
|
protected FeatureSet |
computeSigma()
Calculates the sigma of each feature in this classifier.
|
addExample, clearExamples, debug, examples, getExampleCount, getMuValues, getSigmaValues, getType, toString, train
public GaussianWeightSet(String type)
protected FeatureSet computeMu() throws ClassifierException
computeMu
in class WeightSet
ClassifierException
protected FeatureSet computeSigma() throws ClassifierException
sigma[i] = (sqrt (sum (X[i]-u)^2)))/N
computeSigma
in class WeightSet
ClassifierException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.