|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rit.numeric.XYSeries
public abstract class XYSeries
Class XYSeries is the abstract base class for a series of (x,y) pairs of real values (type double).
| Nested Class Summary | |
|---|---|
static class |
XYSeries.Regression
Class XYSeries.Regression holds the results of a regression on an XYSeries. |
| Constructor Summary | |
|---|---|
XYSeries()
Construct a new XY series. |
|
| Method Summary | |
|---|---|
boolean |
isEmpty()
Determine if this series is empty. |
abstract int |
length()
Returns the number of values in this series. |
XYSeries.Regression |
linearRegression()
Returns the linear regression of the (x,y) values in this XY series. |
double |
maxX()
Returns the maximum X value in this series. |
double |
maxY()
Returns the maximum Y value in this series. |
double |
minX()
Returns the minimum X value in this series. |
double |
minY()
Returns the minimum Y value in this series. |
void |
print()
Print this XY series on the standard output. |
void |
print(PrintStream theStream)
Print this XY series on the given print stream. |
void |
print(PrintWriter theWriter)
Print this XY series on the given print writer. |
abstract double |
x(int i)
Returns the given X value in this series. |
Series |
xSeries()
Returns a Series view of the X values in this XY series. |
abstract double |
y(int i)
Returns the given Y value in this series. |
Series |
ySeries()
Returns a Series view of the Y values in this XY series. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XYSeries()
| Method Detail |
|---|
public abstract int length()
public boolean isEmpty()
public abstract double x(int i)
i - Index.
ArrayIndexOutOfBoundsException - (unchecked exception) Thrown if i is not in the range
0 .. length()-1.public abstract double y(int i)
i - Index.
ArrayIndexOutOfBoundsException - (unchecked exception) Thrown if i is not in the range
0 .. length()-1.public double minX()
public double maxX()
public double minY()
public double maxY()
public XYSeries.Regression linearRegression()
Note: The returned object contains the regression of a snapshot of this series at the time linearRegression() was called. Changing the data in this series will not change the contents of the returned object.
public Series xSeries()
Note: The returned Series object is backed by this XY series object. Changing the contents of this XY series object will change the contents of the returned Series object.
public Series ySeries()
Note: The returned Series object is backed by this XY series object. Changing the contents of this XY series object will change the contents of the returned Series object.
public void print()
public void print(PrintStream theStream)
theStream - Print stream.public void print(PrintWriter theWriter)
theWriter - Print writer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||