get_curve_centroid: Computes the centroid of a curve

View source: R/refactoring.R

get_curve_centroidR 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)

fdasrvf documentation built on Nov. 5, 2025, 5:51 p.m.