|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rit.numeric.Series
public abstract class Series
Class Series is the abstract base class for a series of real values (type double).
| Nested Class Summary | |
|---|---|
static class |
Series.RobustStats
Class Series.RobustStats holds the median, mean absolute deviation, and quantiles of a Series. |
static class |
Series.Stats
Class Series.Stats holds the mean, variance, and standard deviation of a Series. |
| Constructor Summary | |
|---|---|
Series()
Construct a new series. |
|
| Method Summary | |
|---|---|
boolean |
isEmpty()
Determine if this series is empty. |
Iterator<Double> |
iterator()
Returns an iterator over the values in this series. |
abstract int |
length()
Returns the number of values in this series. |
double |
maxX()
Returns the maximum value in this series. |
double |
minX()
Returns the minimum value in this series. |
void |
print()
Print this series on the standard output. |
void |
print(PrintStream theStream)
Print this series on the given print stream. |
void |
print(PrintWriter theWriter)
Print this series on the given print writer. |
Series.RobustStats |
robustStats()
Returns a RobustStats object containing robust statistics of this series. |
Series.Stats |
stats()
Returns a Stats object containing statistics of this series. |
abstract double |
x(int i)
Returns the given X value in this series. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Series()
| 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 double minX()
public double maxX()
public Series.Stats stats()
Note: The returned object contains the statistics of a snapshot of this series at the time stats() was called. Changing the data in this series will not change the contents of the returned object.
public Series.RobustStats robustStats()
Note: The returned object contains the statistics of a snapshot of this series at the time robustStats() was called. Changing the data in this series will not change the contents of the returned object.
public Iterator<Double> iterator()
iterator in interface Iterable<Double>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 | |||||||||