VariableArraySignal

public class VariableArraySignal extends Signal<T>

Author

loreti

Constructors

Link copied to clipboard
public void VariableArraySignal(RecordHandler factory)

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 void addFromMap(double t, Map<String, Object> values)
Link copied to clipboard
public void addFromObject(double t, Array<Object> values)
Link copied to clipboard
public void addFromString(double t, Map<String, String> values)
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
public abstract TimeChain<T, V> getSegments()
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 V getValueAt(T time)
public T getValueAt(Double time)
Link copied to clipboard
public int getVariableIndex(String name)
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 abstract boolean refine(TimeChain<T, V> updates)
public abstract boolean refine(Update<T, V> u)
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 abstract TimeChain<T, V> select(T from, T to)
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()