MultiValuedTrace

Spatial-temporal signal that represents a generic trace of the kind (s,t) -> (x1, ..., xn). Note that x1, ..., xn must at least implement Comparable

The goal of this class is to minimize the raw usage of the Comparable class, so that user usage can be as type-safe as possible.

Moreover, it performs some input checks to make sure the generated signal is correct in terms of the spatial-temporal domain.

See also

Constructors

Link copied to clipboard
public void MultiValuedTrace(int size, int length)
Fixes the dimensions of the signal.

Properties

Link copied to clipboard
public final List<Signal<T>> signals

Functions

Link copied to clipboard
public void add(double t, Array<T> values)
public void add(double time, List<T> values)
public void add(double t, IntFunction<T> f)
Link copied to clipboard
public abstract STSignal<R> apply<R>(Function<T, R> f)
public MfrSignal<R> apply<R>(Function<T, R> f)
Link copied to clipboard
public MfrSignal<T> combine(BinaryOperator<T> f, STSignal<T> s, Array<int> locations)
Link copied to clipboard
public int dimensions()
Link copied to clipboard
public double end()
Link copied to clipboard
public void fill<R>(Array<double> timePoints, Array<Array<R>> data, Function<T, R> f)
Link copied to clipboard
public MfrSignal<T> filter(Predicate<T> p)
Link copied to clipboard
public Array<int> getLocationsSet()
Link copied to clipboard
public int getNumberOfLocations()
Link copied to clipboard
public Signal<T> getSignalAtLocation(int location)
Link copied to clipboard
public ParallelSignalCursor<T> getSignalCursor(boolean forward)
public ParallelSignalCursor1<T> getSignalCursor(boolean forward)
Link copied to clipboard
public List<Signal<T>> getSignals()
Link copied to clipboard
public Array<double> getTimeArray()
Link copied to clipboard
public T getValueAt(int location, double time)
Link copied to clipboard
public void initialize()
Takes the data stored internally so far and performs the actual conversion to Signals.
Link copied to clipboard
public MfrSignal<R> selectApply<R>(Function<T, R> f, Array<int> filter)
Link copied to clipboard
public MultiValuedTrace setDimension(Array<Array<Comparable<? extends Object>>> dimData, int index)
Given some Comparable data, it performs some checks and prepares it to be later added as the index dimension of the n-dimensional signal.
Link copied to clipboard
public double start()
Link copied to clipboard
public Array<Array<Array<double>>> toArray(ToDoubleFunction<T> f)
Returns a 3d-array from a conversion-to-double function
Link copied to clipboard
public String toString()
Link copied to clipboard
public List<T> valuesAtT(double t)