public class ArrayDataSet extends java.lang.Object implements DataSet, java.io.Serializable
Constructor and Description |
---|
ArrayDataSet(double[][] values)
Creates a new instance of ArrayDataSet from a double precision 2D array
|
ArrayDataSet(float[][] values)
Creates a new instance of ArrayDataSet from a float precision 2D array
|
ArrayDataSet(int[][] values)
Creates a new instance of ArrayDataSet from a int precision 2D array
|
ArrayDataSet(long[][] values)
Creates a new instance of ArrayDataSet from a long precision 2D array
|
ArrayDataSet(java.lang.String[][] values)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
getDimensions()
Retrieve how many dimensions this dataset refers to.
|
java.lang.String |
getPointValue(int point,
int dimension)
Retrieve data information from a point.
|
int |
size()
Retrieve how many points this data set has.
|
public ArrayDataSet(double[][] values)
values
- the 2D array in double precision to retrieve data frompublic ArrayDataSet(float[][] values)
values
- the 2D array in float precision to retrieve data frompublic ArrayDataSet(int[][] values)
values
- the 2D array in int precision to retrieve data frompublic ArrayDataSet(long[][] values)
values
- the 2D array in long precision to retrieve data frompublic ArrayDataSet(java.lang.String[][] values)
values
- the 2D array in String format to retrieve data frompublic int size()
public int getDimensions()
getDimensions
in interface DataSet
DataSet.getDimensions()
public java.lang.String getPointValue(int point, int dimension)
getPointValue
in interface DataSet
point
- The point numberdimension
- The point dimension (or "column") to request data fromDataSet.getPointValue(int,int)