IData
public class DataFunction extends DataDoubleArray
Multidimensional functions hold the independent data as an array of one-dimensional DataDoubleArrays, and the dependent data is represented by a single DataDoubleArray that is formed with a corresponding number of dimensions.
All arithmetic operations apply only to the dependent data. Independent data values are unaffected by them.
Note that all instances created by the same factory will hold the same instances of the independent data. Thus if the independent data is changed in any instance, it will be reflected in all instances that were constructed by the factory.
Modifier and Type | Class | Description |
---|---|---|
static class |
DataFunction.DataInfoFunction |
|
static class |
DataFunction.DataInfoFunctionFactory |
DataDoubleArray.DataInfoDoubleArray, DataDoubleArray.DataInfoDoubleArrayFactory
Constructor | Description |
---|---|
DataFunction(int[] arrayShape) |
Forms a DataFunction with the given array shape.
|
DataFunction(int[] arrayShape,
double[] yData) |
Forms a DataFunction using the given independent and dependent data
instances.
|
assignColumnFrom, assignColumnTo, assignSubsectionFrom, assignTo, DE, DE, E, E, E, getArrayDimension, getArrayShape, getData, getLength, getValue, getValue, isNaN, map, ME, PE, PE, TE, TE, toString
public DataFunction(int[] arrayShape, double[] yData)
yData
- the data defined on the space of independent data; a
double[] with getDimension equal to
independentData.lengthjava.lang.IllegalArgumentException
- if length of independentData array does not equal
dependentData.getArrayDimension(), or if any of the
independent data have array dimension not equal to 1public DataFunction(int[] arrayShape)