T
- type of input spacepublic class ParzenClassifier<T> extends java.lang.Object implements Classifier<T>, java.io.Serializable
Constructor and Description |
---|
ParzenClassifier(Kernel<T> kernel) |
Modifier and Type | Method and Description |
---|---|
ParzenClassifier<T> |
copy()
Creates and returns a copy of this object.
|
void |
train(java.util.List<TrainingSample<T>> t)
Replace the current training list and train the classifier
|
void |
train(TrainingSample<T> t)
Add a single example to the current training set and train the classifier
|
double |
valueOf(T e)
Computes the category of the provided example
|
public void train(TrainingSample<T> t)
Classifier
train
in interface Classifier<T>
t
- the training samplepublic void train(java.util.List<TrainingSample<T>> t)
Classifier
train
in interface Classifier<T>
t
- list of training samplespublic double valueOf(T e)
Classifier
valueOf
in interface Classifier<T>
e
- examplepublic ParzenClassifier<T> copy() throws java.lang.CloneNotSupportedException
copy
in interface Classifier<T>
java.lang.CloneNotSupportedException
Object.clone()