|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectweka.classifiers.neural.lvq.model.CodebookVector
public class CodebookVector
Description: Represents a single codebook vector in an LVQ model
A codebook vector is also called a prototype or an exemplar. It is
a single node which represents a sign post in the state space
of the training data
Copyright (c) Jason Brownlee 2004
| Constructor Summary | |
|---|---|
CodebookVector(int aCodebookId)
|
|
| Method Summary | |
|---|---|
void |
clearClassDistributions()
|
double[] |
getAttributes()
Return codebook vector's internal representation |
int |
getBmuCorrectCount()
|
int |
getBmuIncorrectCount()
|
int[] |
getClassHitDistribution()
|
double |
getClassification()
Return codebook vectors class assignmnet |
double |
getDistance()
Get distance from data instance at a point in time |
int |
getId()
|
double |
getIndividualLearningRate()
codebook vectors individual learning rate |
boolean |
hasClassChanged()
|
void |
initialise(double[] aAttributes,
int aClassIndex,
int aNumClasses)
|
void |
resetBmuCounts()
|
void |
setBmuHit(double aDistance,
weka.core.Instance aInstance)
|
void |
setClassification(double aClassificationValue)
|
void |
setIndividualLearningRate(double lrate)
Set the codebook vectors learning rate |
void |
setUseVoting(boolean useVoting)
|
java.lang.String |
toString()
String representation of this codebook vector |
double |
value(int aIndex)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CodebookVector(int aCodebookId)
| Method Detail |
|---|
public void setClassification(double aClassificationValue)
public void initialise(double[] aAttributes,
int aClassIndex,
int aNumClasses)
public java.lang.String toString()
toString in class java.lang.Objectpublic double getClassification()
public double getDistance()
public double[] getAttributes()
public double getIndividualLearningRate()
public void setIndividualLearningRate(double lrate)
lrate - public double value(int aIndex)
public void setBmuHit(double aDistance,
weka.core.Instance aInstance)
public void resetBmuCounts()
public int getBmuCorrectCount()
public int getBmuIncorrectCount()
public int getId()
public int[] getClassHitDistribution()
public boolean hasClassChanged()
public void setUseVoting(boolean useVoting)
public void clearClassDistributions()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||