-
-
Notifications
You must be signed in to change notification settings - Fork 19
boxstep
Vašek edited this page Feb 16, 2019
·
1 revision
This function will return the y-coordinate from the boxstep function
boxstep(a, b, x)| Argument | Description |
|---|---|
double a |
The left edge |
double b |
The right edge |
double x |
The x-coordinate |
Returns: double
This function will return a value which is the y-coordinate in the boxstep function. It's the result of the convolution of a box filter with a step edge. The width of the box filter is (b - a).
double value = boxstep(0.25, 0.75, 0.5);This function will set value to 0,5.
double value = boxstep(0.5, 0.6, 0);This function will set value to 1.
Back to interpolations