|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectgeneticWedge.gp.io.NumericData
public class NumericData
This class holds numeric data as well as variable names and data labels. It can perform operations on the data that it holds, such as normalisation
Constructor Summary | |
---|---|
NumericData(java.lang.String[] names,
double[][] data,
java.lang.String[] labels)
constructs a NumericData object with data, variable names and data labels. |
Method Summary | |
---|---|
double[][] |
denormaliseData(double[][] normData)
This method uses the normalisation constants set as a side effect in normaliseData(). |
double[] |
denormaliseData(double[] normData,
int index)
This method uses the normalisation constants set as a side effect in normaliseData(). |
double[][] |
getData()
Returns the data held by this NumericData object. |
double[][] |
getData(int[] variableIndices)
Returns selected data held by this NumericData object. |
int |
getDataLength()
Returns the length of the data. |
int |
getDimensionality()
Returns the dimensionality of the data. |
java.lang.String[] |
getLabels()
Returns the data 'labels' held by this NumericData object. |
java.lang.String[] |
getNames()
Returns the variable names held by this NumericData object. |
double[][] |
normaliseData()
Returns the data held by this object, normalised to the range [-1,1] |
double[][] |
normaliseData(double[][] newData)
Normalises newData using the most recently used normalisation factors. |
double[][] |
normaliseData(double minVal,
double maxVal)
Returns the data held by this object, normalised to the range [minVal,maxVal] |
double[][] |
normaliseData(double minVal,
double maxVal,
int[] variableIndices)
Returns the values of the data within the variables identified by variableIndices, normalised to the range [minVal,maxVal] |
double[][] |
normaliseData(int[] variableIndices)
Returns the values of the data within the variables identified by variableIndices, normalised to the range [-1,1] |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NumericData(java.lang.String[] names, double[][] data, java.lang.String[] labels)
Method Detail |
---|
public double[][] getData()
public double[][] getData(int[] variableIndices)
public int getDataLength()
public int getDimensionality()
public java.lang.String[] getNames()
public java.lang.String[] getLabels()
public double[][] normaliseData()
public double[][] normaliseData(double minVal, double maxVal)
public double[][] normaliseData(int[] variableIndices)
public double[][] normaliseData(double minVal, double maxVal, int[] variableIndices)
public double[][] normaliseData(double[][] newData)
public double[][] denormaliseData(double[][] normData)
public double[] denormaliseData(double[] normData, int index)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |