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 History
public int getHistoryLength()
History
getHistoryLength
in interface History
public int getSampleCount()
History
getSampleCount
in interface History
public void reset()
public double[] getXValues()
History
getXValues
in interface History
public boolean addValue(double x, double y)
History
public double[] getHistory()
getHistory
in interface History
public void setCollapseOnReset(boolean flag)
public boolean isCollapseOnReset()
public boolean willDiscardNextData()