check_input_arrays

sofia_redux.toolkit.splines.spline_utils.check_input_arrays(values, coordinates, weights)[source]

Check all input arrays.

For a data point to be valid, it must have a finite value, weight and coordinate. The weight must greater than zero, and coordinates must be finite in each dimension.

Parameters:
valuesnumpy.ndarray (float)

An array of values of shape (n_data,).

coordinatesnumpy.ndarray (float)

The coordinate values of shape (n_dimensions, n_data).

weightsnumpy.ndarray (float)

The point weights of shape (n_data,).

Returns:
validnumpy.ndarray (bool)

A boolean mask of shape (n_data,) where False marks an invalid data coordinate.