|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.approximatrix.charting.model.MultiScatterDataModel.DataSet
private class MultiScatterDataModel.DataSet
Implements a complete data set model that holds and manages X and Y values separately
| Field Summary | |
|---|---|
private java.util.ArrayList<java.lang.Double> |
xvalues
The data set's independent values |
private java.util.ArrayList<java.lang.Double> |
yvalues
The data set's dependent values |
| Constructor Summary | |
|---|---|
MultiScatterDataModel.DataSet()
Initializes internal ArrayLists without setting any data |
|
MultiScatterDataModel.DataSet(double[][] xy)
Creates a new data set from a single array containing both x and y values |
|
MultiScatterDataModel.DataSet(double[] x,
double[] y)
Creates a new data set from two vectors containing x and y values |
|
| Method Summary | |
|---|---|
double |
getMaxX()
Returns the largest independent value in the data set |
double |
getMaxY()
Returns the largest dependent value in the data set |
double |
getMinX()
Returns the smallest independent value in the data set |
double |
getMinY()
Returns the smallest dependent value in the data set |
double |
getX(int i)
Returns the specified independent value |
double |
getY(int i)
Returns the specified dependent value |
void |
setXValue(double value,
int i)
Sets a single independent value at a specified location |
void |
setXValues(double[] inputs)
Sets the independent values for this data set |
void |
setXYValues(double[][] inputs)
Sets the independent and dependent values simultaneously |
void |
setYValue(double value,
int i)
Sets a single dependent value at a specified location |
void |
setYValues(double[] inputs)
Sets the dependent values for this data set |
int |
size()
Returns the number of entries in the data set |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.ArrayList<java.lang.Double> xvalues
private java.util.ArrayList<java.lang.Double> yvalues
| Constructor Detail |
|---|
public MultiScatterDataModel.DataSet()
public MultiScatterDataModel.DataSet(double[] x,
double[] y)
x - the independent valuesy - the dependent valuespublic MultiScatterDataModel.DataSet(double[][] xy)
xy - a 2 column array with the first column containing independent values, and the second containing dependent values| Method Detail |
|---|
public int size()
public double getX(int i)
i - the independent value to retrieve
public double getY(int i)
i - the dependent value to retrieve
public void setXValues(double[] inputs)
inputs - a vector of independent valuespublic void setYValues(double[] inputs)
inputs - a vector of dependent valuespublic void setXYValues(double[][] inputs)
inputs - an array containing independent values in the first column and dependent values in the second column
public void setXValue(double value,
int i)
value - the value to seti - the location to set
public void setYValue(double value,
int i)
value - the value to seti - the location to setpublic double getMaxX()
public double getMaxY()
public double getMinX()
public double getMinY()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||