All Packages Class Hierarchy This Package Previous Next Index
Class crw.data.ArrayData
java.lang.Object
|
+----crw.data.Data
|
+----crw.data.ArrayData
- public abstract class ArrayData
- extends Data
An array-type data, such as experimental data, is represented
by this class. An x-y data file is read in and the x[] and y[][]
arrays are created in the client code. Then ArrayData object
is instantiated from this data arrays. If y[N][] and N>1, then
the parameter-array of this parameterized curve may be passed
to the constructor.
- Version:
- 0.0 4/1/1998
- Author:
- C.R.Wie
-
ArrayData(double[], double[], double[][])
- If data is a parameterized curve and the parameter-value of each curve
is known, then use this constructor.
-
ArrayData(double[], double[][])
-
-
getParam()
- If data is a family of curves, the subclass must override this
method and return the parameter values of each curve.
-
getX()
- Must be specified in the concrete subclass.
-
getY()
- Is implemented in the subclass FunctionData or ArrayData.
ArrayData
public ArrayData(double x[],
double y[][])
- Parameters:
- x - the x-array from data
- y - the y-array from data.
ArrayData
public ArrayData(double x[],
double param[],
double y[][])
- If data is a parameterized curve and the parameter-value of each curve
is known, then use this constructor.
- Parameters:
- x - the x-array from data.
- y - the y-arrays from data.
- param - the parameter-array.
getY
public double[][] getY()
- Is implemented in the subclass FunctionData or ArrayData.
- Overrides:
- getY in class Data
getX
public double[] getX()
- Must be specified in the concrete subclass.
- Overrides:
- getX in class Data
getParam
public double[] getParam()
- If data is a family of curves, the subclass must override this
method and return the parameter values of each curve.
- Overrides:
- getParam in class Data
All Packages Class Hierarchy This Package Previous Next Index