For a vector \(x\) of length \(n\), partial
moments are computed as follows:
$$\mathrm{upper\ partial\ moment} = \frac{1}{n} \sum_{x >
t}\left(x - t \right)^e$$
$$\mathrm{lower\ partial\ moment} = \frac{1}{n} \sum_{x <
t}\left(t - x \right)^e$$
The threshold is denoted \(t\), the exponent
xp is labelled \(e\).
If normalise is TRUE, the result is raised to
1/xp. If x is a matrix, the function will compute the
partial moments column-wise.
See Gilli, Maringer and Schumann (2019), chapter 14.