|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgpalta.core.Output
public class Output
Stores the outputs of an individual. It can be used to represent multi-dimensional outputs
Constructor Summary | |
---|---|
Output(int dim,
int nSamples)
Creates a new instance of Output |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
double[] |
getArray(int wDim)
Get an array representing outputs for each sample |
double[] |
getArrayCopy(int wDim)
Get an independent array representing outputs for each sample |
int |
getDim()
Get the dimension (number of scalar outputs per sample) of this Output |
void |
setArray(int wDim,
double[] array)
Register an array to this Output object. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Output(int dim, int nSamples)
Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public double[] getArray(int wDim)
wDim
- Which dimension of the output to get. For uni-dimensional problems, this should
be zero
public void setArray(int wDim, double[] array)
wDim
- array
- public double[] getArrayCopy(int wDim)
wDim
- Wich dimension of the output to get. For uni-dimensional problems, this should be
zero
public int getDim()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |