powered by
Computes the centroid of a curve
get_curve_centroid(betafun)
A numeric vector of length \(L\) storing the centroid of the curve.
A function that takes a numeric vector \(s\) of values in \([0, 1]\) as input and returns its values at \(s\).
betafun <- discrete2curve(beta[, , 1, 1]) get_curve_centroid(betafun)
Run the code above in your browser using DataLab