This function generates the aggregate n‑dimensional divergent partial moment (n >= 2) for any degree or target.
Arguments
- data
A numeric matrix with observations in rows and variables in columns.
- target
A numeric vector, length equal to ncol(data).
- degree
numeric; degree for upper deviations (0 = frequency, 1 = area).
- norm
logical; if
TRUE(default) normalize to the maximum observed value (→ [0,1]), otherwise return the raw moment.