|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface Sequence
A sequence is an ordered list of (real) numbers.
Although some sequences, e.g., Fibonacci, have infinitely many elements, we can, in practice, compute only finitely many of them.
| Method Summary | |
|---|---|
double |
get(int index)
Get the index-th entry in the sequence. |
double[] |
getAll()
Get the whole (finite) sequence in a double[] array. |
int |
length()
Get the number of computed terms in the sequence. |
| Method Detail |
|---|
int length()
double get(int index)
index-th entry in the sequence.
The indices count from 1.
index - the index
index-th entry in the sequencedouble[] getAll()
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||