Skip to content
Snippets Groups Projects
Commit a4dc2cc9 authored by Andrew Heather's avatar Andrew Heather Committed by Mattijs Janssens
Browse files

ENH: Added new LimitRange Function1 wrapper

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.
parent 9f5b8d0e
Branches
Tags
1 merge request!414Feature function1 limit range
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment