Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

boxstep

Vašek edited this page Feb 16, 2019 · 1 revision

boxstep

This function will return the y-coordinate from the boxstep function

Syntax:

boxstep(a, b, x)
Argument Description
double a The left edge
double b The right edge
double x The x-coordinate

Returns: double

Description:

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).

Example 1:

double value = boxstep(0.25, 0.75, 0.5);

This function will set value to 0,5.

Example 2:

double value = boxstep(0.5, 0.6, 0);

This function will set value to 1.

Back to interpolations

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /