|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAccumulator
Accumulator Class
This class represents a two-dimensional array of double
Constructor Summary | |
Accumulator(int N)
Creates a N wide accumulator |
Method Summary | |
double |
get(int x,
int y)
Returns the value of the square at (x,y) |
void |
init()
Sets every squares to zero |
boolean |
update(BooleanMatrix boolMat,
double gradient)
Increments each square of the accumulator that correspond with a "true" value square of the boolean matrix |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Accumulator(int N)
Method Detail |
public void init()
public boolean update(BooleanMatrix boolMat, double gradient)
boolMat
- a boolean array with the same dimension than the accumulator (strongly recommanded)gradient
- the incrementation valuepublic double get(int x, int y)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |