Skip to main content

clip

Clip (limit) the values in an array to a given range.
Returns: NDArray — Array with values clipped to [a_min, a_max].

maximum

Element-wise maximum of two arrays. Propagates NaN.
Returns: NDArray — Element-wise maximum. If either element is NaN, the result is NaN.

minimum

Element-wise minimum of two arrays. Propagates NaN.
Returns: NDArray — Element-wise minimum. If either element is NaN, the result is NaN.

fmax

Element-wise maximum of two arrays, ignoring NaN. If one element is NaN, the other is returned.
Returns: NDArray — Element-wise maximum, ignoring NaN.

fmin

Element-wise minimum of two arrays, ignoring NaN.
Returns: NDArray — Element-wise minimum, ignoring NaN.

nan_to_num

Replace NaN with zero and infinity with large finite numbers (or specified values).
Returns: NDArray — Array with NaN/Inf replaced.

interp

One-dimensional linear interpolation for monotonically increasing sample points.
Returns: NDArray — Interpolated values at each point in x. Existing 5-argument callers are unaffected.

sinc

Return the normalized sinc function: sin(pi*x) / (pi*x). The sinc function is 1 at x = 0.
Returns: NDArray — Element-wise sin(pi*x) / (pi*x).

i0

Modified Bessel function of the first kind, order 0.
Returns: NDArray — Element-wise modified Bessel function I_0(x).

unwrap

Unwrap by changing deltas between values to their 2*pi complement. Useful for unwrapping radian phase data.
Returns: NDArray — Unwrapped array.

real

Return the real part of each element. For real-valued arrays, returns a copy.
Returns: NDArray — The real part of each element.

imag

Return the imaginary part of each element. For real-valued arrays, returns zeros.
Returns: NDArray — The imaginary part of each element.

conj

Return the complex conjugate, element-wise. For each element a + bi, returns a - bi. Also available as the alias conjugate.
Returns: NDArray — Complex conjugate of each element.

angle

Return the angle (argument) of complex numbers.
Returns: NDArray — The counterclockwise angle from the positive real axis, in radians (or degrees if deg is true).