public class WeightedEuclideanClassifier extends AbstractClassifier
Modifier and Type | Field and Description |
---|---|
protected static double |
MIN_SIGMA
The minimum sigma value; used to avoid divide-by-zero errors.
|
protected static double |
NORMALIZATION
A normalization constant: 10 divided by 30, every 30 unit
in distance results in a 10% recognition drop.
|
_weights
Constructor and Description |
---|
WeightedEuclideanClassifier()
Construct a classifier with no weight set.
|
Modifier and Type | Method and Description |
---|---|
Classification |
classify(FeatureSet fs)
Classify the specified feature set using each weight, by
comparing them to the mu (mean) value of the weight and
weighting it by the sigma value (standard deviation).
|
clear, debug, isIncremental, train
protected static final double MIN_SIGMA
protected static final double NORMALIZATION
public WeightedEuclideanClassifier()
public Classification classify(FeatureSet fs) throws ClassifierException
value = sum((input[f] - mu[f])^2/sigma[f]^2)Finally, normalize the value into a confidence between 0 and 100.
ClassifierException
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.