public class TimeSeries extends Object
Modifier and Type | Class and Description |
---|---|
class |
TimeSeries.DataPoint
Represents a datapoint in a time series.
|
Constructor and Description |
---|
TimeSeries(String name)
Create a new time series with the given name and no data.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.EvictingQueue<TimeSeries.DataPoint> |
getDataPoints() |
String |
getName() |
void |
record(double value)
Record a value at the current time.
|
public TimeSeries(String name)
name
- name of the time seriespublic void record(double value)
value
- value to recordpublic String getName()
public com.google.common.collect.EvictingQueue<TimeSeries.DataPoint> getDataPoints()
Copyright © 2023. All Rights Reserved.