get_curve_centroid {fdasrvf}R Documentation

Computes the centroid of a curve

Description

Computes the centroid of a curve

Usage

get_curve_centroid(betafun)

Arguments

betafun

A function that takes a numeric vector s of values in [0, 1] as input and returns its values at s.

Value

A numeric vector of length L storing the centroid of the curve.

Examples

betafun <- discrete2curve(beta[, , 1, 1])
get_curve_centroid(betafun)

[Package fdasrvf version 2.4.0 Index]