MathUtilities 1.1.15
Common math functions shared across compiled apps at NML-NHP.
Loading...
Searching...
No Matches
Thresholding

Functions for determining whether signal features meet a given criterion. More...

Functions

int spatialL2Threshold (double x, double y, double x_target, double y_target, double radius)
 Determine whether a point is within a given radius of a target point in 2D space.
 

Detailed Description

Functions for determining whether signal features meet a given criterion.

Function Documentation

◆ spatialL2Threshold()

int spatialL2Threshold ( double x,
double y,
double x_target,
double y_target,
double radius )

Determine whether a point is within a given radius of a target point in 2D space.

Parameters
xThe x-coordinate of the point.
yThe y-coordinate of the point.
x_targetThe x-coordinate of the target point.
y_targetThe y-coordinate of the target point.
radiusThe radius within which to check if the point lies.
Returns
1 if the point is within the radius of the target point, 0 otherwise.