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, trainpublic GaussianWeightSet(String type)
protected FeatureSet computeMu() throws ClassifierException
computeMu in class WeightSetClassifierExceptionprotected FeatureSet computeSigma() throws ClassifierException
sigma[i] = (sqrt (sum (X[i]-u)^2)))/N
computeSigma in class WeightSetClassifierExceptionCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.