|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object databionics.esom.train.BestMatchHit
public class BestMatchHit
Represent the projection of one ore more data vectors on a best match. Keeps a running sum of the data vectors and can return the mean vector for updating.
Field Summary | |
---|---|
protected cern.colt.list.IntArrayList |
classList
|
protected int |
hitCount
counter for hits on neuron |
protected static int |
sameHits
counter for BestMatchHits |
protected cern.colt.matrix.DoubleMatrix1D |
sum
sum of prjected data vectors |
Constructor Summary | |
---|---|
BestMatchHit()
standard constructor |
|
BestMatchHit(cern.colt.matrix.DoubleMatrix1D vector)
constructor for first hit |
|
BestMatchHit(cern.colt.matrix.DoubleMatrix1D vector,
int classnumber)
constructor for first hit |
Method Summary | |
---|---|
void |
add(cern.colt.matrix.DoubleMatrix1D vector)
add a vector to the running sum |
void |
add(cern.colt.matrix.DoubleMatrix1D vector,
int classnumber)
add a vector to the running sum |
cern.colt.list.IntArrayList |
getClassList()
|
int |
getHits()
gives number of BestMatchHits |
cern.colt.matrix.DoubleMatrix1D |
getMean()
Calculate the mean vector |
int |
getSameHits()
gives the number of hits to neurons which are hit before |
void |
setClassList(cern.colt.list.IntArrayList classList)
|
void |
setHits(int j)
sets the number of hits, only used to set to zero |
void |
setSameHits(int j)
sets the number of hits, only used to set to zero |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static int sameHits
protected int hitCount
protected cern.colt.matrix.DoubleMatrix1D sum
protected cern.colt.list.IntArrayList classList
Constructor Detail |
---|
public BestMatchHit()
public BestMatchHit(cern.colt.matrix.DoubleMatrix1D vector)
vector
- vector to addpublic BestMatchHit(cern.colt.matrix.DoubleMatrix1D vector, int classnumber)
vector
- vector to addMethod Detail |
---|
public void add(cern.colt.matrix.DoubleMatrix1D vector, int classnumber)
vector
- vector to addpublic void add(cern.colt.matrix.DoubleMatrix1D vector)
vector
- vector to addpublic cern.colt.matrix.DoubleMatrix1D getMean()
public int getHits()
public void setHits(int j)
j
- number to set topublic int getSameHits()
public void setSameHits(int j)
j
- number to set topublic cern.colt.list.IntArrayList getClassList()
public void setClassList(cern.colt.list.IntArrayList classList)
classList
- The classList to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |