environmentaltools.graphics.smooth1D
- environmentaltools.graphics.smooth1D(y, lambda_)[source]
Apply 1D smoothing to data using regularization matrix.
Implements smoothing through matrix operations with penalty terms based on first and second differences.
- Parameters:
y (array-like) – Input data to smooth (m x n array).
lambda (float) – Smoothing parameter controlling penalty strength.
- Returns:
Smoothed data with same shape as input.
- Return type:
numpy.ndarray