| Constructor | Description |
|---|---|
HistoryComplete() |
|
HistoryComplete(int n) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addValue(double x,
double y) |
Adds the given x, y pair to the History.
|
double[] |
getHistory() |
Returns an the history
|
int |
getHistoryLength() |
Returns the number of data points tracked by the History.
|
int |
getSampleCount() |
Returns the number of data samples currently held by the History.
|
double[] |
getXValues() |
Returns an array containing the x values that have been added to the
History.
|
boolean |
isCollapseOnReset() |
Returns true if the history is collapsed (to 100 data points) when reset
is called.
|
void |
reset() |
Removes entire history, setting all values to NaN.
|
void |
setCollapseOnReset(boolean flag) |
Sets a flag that determines if the history is collapsed (to 100 data
points) when reset is called.
|
void |
setHistoryLength(int n) |
Sets the number of values kept in the history.
|
boolean |
willDiscardNextData() |
public HistoryComplete()
public HistoryComplete(int n)
public void setHistoryLength(int n)
setHistoryLength in interface Historypublic int getHistoryLength()
HistorygetHistoryLength in interface Historypublic int getSampleCount()
HistorygetSampleCount in interface Historypublic void reset()
public double[] getXValues()
HistorygetXValues in interface Historypublic boolean addValue(double x,
double y)
Historypublic double[] getHistory()
getHistory in interface Historypublic void setCollapseOnReset(boolean flag)
public boolean isCollapseOnReset()
public boolean willDiscardNextData()