Package net.maswag.falcaun
Class ValueWithTime<T>
java.lang.Object
net.maswag.falcaun.ValueWithTime<T>
- Type Parameters:
T
- The type of the values
A pair of time and values.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
timestamps
-
values
-
-
Constructor Details
-
ValueWithTime
ValueWithTime() -
ValueWithTime
-
-
Method Details
-
size
public int size()Get the number of contained values. -
at
Get the value at the given time. -
range
Get the values in the given time range.- Parameters:
from
- The start time (non-inclusive)to
- The end time (inclusive)
-
stream
Stream the List of values between each signal step.The i-th element is the list of values between (i-1) * signalStep and i * signalStep
- Parameters:
signalStep
- The time step between each signal
-