Skip to content
  • Andrew Heather's avatar
    ENH: Added new LimitRange Function1 wrapper · a4dc2cc9
    Andrew Heather authored and Mattijs Janssens's avatar Mattijs Janssens committed
    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.
    a4dc2cc9