Skip to content

Feature function1 limit range

Andrew Heather requested to merge feature-function1-limit-range into develop

Function1 wrapper that limits the input range of another Function1

Example usage for limiting a polynomial:

limitedPolyTest        limitRange;
limitedPolyTestCoeffs
{
    min         0.4;
    max         1.4;

    value       polynomial
    (
        (5 1)
        (-2 2)
        (-2 3)
        (1 4)
    );
}

Here the return value will be:

  • poly(0.4) for x <= 0.4;
  • poly(1.4) for x >= 1.4; and
  • poly(x) for 0.4 < x < 1.4.

Merge request reports