|
Java Statistical Classes | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--jsc.datastructures.PairedData
This class represents two samples, X and Y, of paired (related) data. The data are supplied in the form of two arrays, x and y, of real (double) values.
| Constructor Summary | |
PairedData(double[][] data)
Construct the paired data structure from a matrix with two columns. |
|
PairedData(double[] x,
double[] y)
Construct the paired data structure from two arrays. |
|
| Method Summary | |
double[] |
differences()
Subtracts the elements of array y from corresponding elements of array x and returns the array of differences. |
int |
getN()
Return number of paired data values. |
double[] |
getX()
Return sample x data. |
double[] |
getY()
Return sample y data. |
String |
toString()
Returns a string representation of the object in the form of a table. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PairedData(double[] x,
double[] y)
x - the data of sample X.y - the data of sample Y.
IllegalArgumentException - if length of arrays are not equal or zero.public PairedData(double[][] data)
data - the data matrix of sample X.
IllegalArgumentException - if number of pairs is zero.
ArrayIndexOutOfBoundsException - if a row of the data matrix contains < 2 values.| Method Detail |
public double[] differences()
public int getN()
public double[] getX()
public double[] getY()
public String toString()
toString in class Object
|
Java Statistical Classes | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||