public class LearningData extends Object implements LearningDataModel
| Constructor and Description |
|---|
LearningData(ArrayList<double[]> dataList)
Creates a new instance of LearningData.
|
LearningData(PND array2D)
Creates a new instance of LearningData.
|
LearningData(String fileName)
Creates a new instance of LearningData.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
getData(int index)
Return ArrayList as vector of data
|
int |
getDataSize()
Return numbers of data
|
int |
getVectorSize()
Return length of the vector
|
String |
toString()
Return a string representation of the data.
|
public LearningData(String fileName)
fileName - path to the file with datapublic LearningData(PND array2D)
array2D - list of valuespublic LearningData(ArrayList<double[]> dataList)
dataList - list of valuespublic double[] getData(int index)
getData in interface LearningDataModelindex - index of datapublic String toString()
toString in interface LearningDataModeltoString in class Objectpublic int getDataSize()
getDataSize in interface LearningDataModelpublic int getVectorSize()
DataMelt-1.1. http://jwork.org/dmelt/ ©