Signals

public class Signals

Algorithms for basic signal primitives, precisely

  • refine for refining a signal given an update
  • refineChain for refining a signal given a sequence of updates
  • select for selecting a fragment of a signal given some bounds

Functions

Link copied to clipboard
public static boolean doRefine<V>(ChainIterator<Sample<Double, V>> itr, double from, double to, V vNew, double t, double tNext, V v, V prevV, BiPredicate<V, V> refinable)
Refinement logic.
Link copied to clipboard
public static boolean refine<V>(TimeChain<Double, V> s, Update<Double, V> u, BiPredicate<V, V> refinable)
Link copied to clipboard
public static boolean refineChain<V>(TimeChain<Double, V> s, TimeChain<Double, V> updates, BiPredicate<V, V> refinable)
Link copied to clipboard
public static TimeChain<T, V> select<T extends Comparable<T>, V>(TimeChain<T, V> segments, T from, T to)
Selects a fragment of the given TimeChain