|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjhplot.math.num.DoubleArray
public class DoubleArray
An expandable double array.
| Constructor Summary | |
|---|---|
DoubleArray()
|
|
| Method Summary | |
|---|---|
void |
add(double value)
Adds an element to the end of this expandable array. |
void |
clear()
Remove all elements from this collection. |
double |
get(int index)
Access the element at the given index. |
int |
getSize()
Access the size of this array. |
void |
set(int index,
double value)
Modify the element at the given index. |
void |
setSize(int n)
Modify the size of this array. |
double[] |
toArray()
Convert this array into a native array. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DoubleArray()
| Method Detail |
|---|
public void add(double value)
value - to be added to end of arraypublic void clear()
public double get(int index)
index - the index of the element to retrieve.
public int getSize()
public void set(int index,
double value)
index - the index of the element to modify.value - the new index-th element value.public void setSize(int n)
n - the new array size.public double[] toArray()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||