|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgpalta.core.ProblemData
public class ProblemData
Holds the problem's data and provides methods to access it.
Field Summary | |
---|---|
int |
nSamples
|
int |
nVars
|
double |
sigmaOpt2
|
Constructor Summary | |
---|---|
ProblemData(double[][] data)
Initialize the data from the given matrix. |
|
ProblemData(java.lang.String fileName,
java.lang.String separator)
Initialize the data from a file |
Method Summary | |
---|---|
double |
getAngleCurrentSample(int wAngle)
|
double[] |
getAngles(int wAngle)
|
double[] |
getCurrentSample()
Get the current sample (all variables) |
double |
getData(int whichVar)
Get the current value for a variable |
double[] |
getDataVect(int whichVar)
Get all values (in all samples) for a variable |
double |
getMax(int whichVar)
Get the maximum value of a certain variable |
double |
getMin(int whichVar)
Get the minimum value of a certain variable |
double |
getNormCurrentSample()
|
double[] |
getNorms()
|
double |
getRange(int wVar)
Get the range (maximum - minimum) of a certain variable |
double[] |
getSample(int wSample)
Get a sample (all variables) |
void |
reset()
reset() must be called every time a new tree is being evaluated (when using eval() instead of evalVect() ) |
void |
update()
update() must be called every time a new sample is required (when using eval() instead of evalVect() ) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int nSamples
public int nVars
public double sigmaOpt2
Constructor Detail |
---|
public ProblemData(java.lang.String fileName, java.lang.String separator)
public ProblemData(double[][] data)
Method Detail |
---|
public double getData(int whichVar)
whichVar
- The variable (between 1 and nVars)
public double[] getDataVect(int whichVar)
whichVar
- The variable (between 1 and nVars)
public void reset()
public void update()
public double getMin(int whichVar)
whichVar
- The variable (between 1 and nVars)public double getMax(int whichVar)
whichVar
- The variable (between 1 and nVars)public double getRange(int wVar)
wVar
- The variable (between 1 and nVars)public double[] getCurrentSample()
public double[] getSample(int wSample)
wSample
- Which sample (between 0 and nSamples)
public double getAngleCurrentSample(int wAngle)
public double[] getAngles(int wAngle)
public double getNormCurrentSample()
public double[] getNorms()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |