|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgpalta.core.TempVectorFactory
public class TempVectorFactory
Hold arrays in which the nodes will be evaluated (when using evalVect). This is done to avoid allocating memory every time a node is evaluated, greatly improving execution speed with large data sets
Constructor Summary | |
---|---|
TempVectorFactory(int vectorSize)
Creates a new instance of TempVectorFactory |
Method Summary | |
---|---|
double[] |
get()
Get a new array. |
void |
release()
Tell that the latest requested array is no longer needed by the Node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TempVectorFactory(int vectorSize)
vectorSize
- The size of each array (number of samples)Method Detail |
---|
public double[] get()
public void release()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |