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

Constructor Index

 o ArrayData(double[], double[], double[][])
If data is a parameterized curve and the parameter-value of each curve is known, then use this constructor.
 o ArrayData(double[], double[][])

Method Index

 o getParam()
If data is a family of curves, the subclass must override this method and return the parameter values of each curve.
 o getX()
Must be specified in the concrete subclass.
 o getY()
Is implemented in the subclass FunctionData or ArrayData.

Constructors

 o ArrayData
 public ArrayData(double x[],
                  double y[][])
Parameters:
x - the x-array from data
y - the y-array from data.
 o 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.

Methods

 o getY
 public double[][] getY()
Is implemented in the subclass FunctionData or ArrayData.

Overrides:
getY in class Data
 o getX
 public double[] getX()
Must be specified in the concrete subclass.

Overrides:
getX in class Data
 o 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