| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv boolean | |
| pack-priv int | |
| pack-priv float | |
| pack-priv float[] |
| Access | Constructor and Description |
|---|---|
| public | WindowedMean(int
size of the sample window window_size)constructor, window_size specifies the number of samples we will continuously get the mean and variance from. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | |
| public int | |
| public int | |
| public float[] | getWindowValues()
Returns: A new |
| public boolean | |
| public float |
| added_values | back to summary |
|---|---|
| pack-priv int added_values | |
| dirty | back to summary |
|---|---|
| pack-priv boolean dirty | |
| last_value | back to summary |
|---|---|
| pack-priv int last_value | |
| mean | back to summary |
|---|---|
| pack-priv float mean | |
| values | back to summary |
|---|---|
| pack-priv float[] values | |
| WindowedMean | back to summary |
|---|---|
| public WindowedMean(int window_size) constructor, window_size specifies the number of samples we will continuously get the mean and variance from. the class will only return meaning full values if at least window_size values have been added.
| |
| addValue | back to summary |
|---|---|
| public void addValue(float value) adds a new sample to this mean. In case the window is full the oldest value will be replaced by this new value.
| |
| clear | back to summary |
|---|---|
| public void clear() clears this WindowedMean. The class will only return meaningful values after enough data has been added again. | |
| getHighest | back to summary |
|---|---|
| public float getHighest() | |
| getLatest | back to summary |
|---|---|
public float getLatest()
| |
| getLowest | back to summary |
|---|---|
| public float getLowest() | |
| getMean | back to summary |
|---|---|
| public float getMean() returns the mean of the samples added to this instance. Only returns meaningful results when at least window_size samples as specified in the constructor have been added.
| |
| getOldest | back to summary |
|---|---|
public float getOldest()
| |
| getValueCount | back to summary |
|---|---|
| public int getValueCount() | |
| getWindowSize | back to summary |
|---|---|
| public int getWindowSize() | |
| getWindowValues | back to summary |
|---|---|
public float[] getWindowValues()
| |
| hasEnoughData | back to summary |
|---|---|
public boolean hasEnoughData()
| |
| standardDeviation | back to summary |
|---|---|
public float standardDeviation()
| |