Class HybridFunction



  • public class HybridFunction
    extends Function
    Piecewise function made of two other functions, f and g. If argument>threshold, return g(t), otherwise return f(t) Implements double model for setting the threshold or cross-over point, which defaults to zero.
    • Method Detail

      • set

        public void set(double t)
        DoubleModel implementation: set crossover point
      • get

        public double get()
        DoubleModel implementation: get crossover point
      • apply

        public double apply(double t)
        Specified by:
        apply in class Function
      • format

        public java.lang.String format(java.lang.String arg)
        Specified by:
        format in class Function