Signal

public class Signal<T> implements TimeSignal<T, V>

Offline signal class.

Inheritors

Constructors

Link copied to clipboard
public void Signal()

Functions

Link copied to clipboard
public void add(double t, T value)
Add (t, value) to the sample set
Link copied to clipboard
public void addBefore(double t, T value)
Add (t,value) to the sample set
Link copied to clipboard
public Array<Array<double>> arrayOf(ToDoubleFunction<T> f)

public Array<Array<double>> arrayOf(Array<double> timePoints, ToDoubleFunction<T> f)
Returns a 2d-array from a set of time points and a conversion-to-double function
Link copied to clipboard
public void endAt(double end)
Link copied to clipboard
public void fill<R>(Array<double> timePoints, Array<R> data, Function<T, R> f)
Link copied to clipboard
public void forEach(BiConsumer<Double, T> consumer)
Link copied to clipboard
public double getEnd()
Link copied to clipboard
public SignalCursor<Double, T> getIterator(boolean forward)
Link copied to clipboard
Returns the internal chain of segments.
Link copied to clipboard
public double getStart()
Link copied to clipboard
public Set<Double> getTimeSet()
Link copied to clipboard
public T getValueAt(Double time)
Link copied to clipboard
public boolean isEmpty()
Link copied to clipboard
public R reduce<R>(BiFunction<Pair<Double, T>, R, R> reducer, R init)
Link copied to clipboard
public boolean refine(TimeChain<Double, T> updates)
public boolean refine(Update<Double, T> u)
Performs an update of the internal representation of the signal, given the data available in the update.
Link copied to clipboard
public TimeChain<Double, T> select(Double from, Double to)
Temporal projection operation that selects a sub-part of the signal delimited by the time instants provided by the input parameters.
Link copied to clipboard
public int size()
Link copied to clipboard
public String toString()