Normalization¶
The Eq. 3 primitive shared by every test.
The Eq. 3 normalization primitive used by every DEBRA test.
- shachen.norm.normalize(x, bounds: Bounds)[source]¶
N(x) = clip((x - MIN) / (MAX - MIN), 0, 1) (Miller et al. 2017, Eq. 3).
Works on scalars, numpy arrays, and xarray DataArrays.
bounds.minmay exceedbounds.max(used for the cos-zenith blends specified in zenith-angle space): the sense of the ramp reverses.