Learn R Programming

fdasrvf (version 2.3.6)

get_curve_centroid: Computes the centroid of a curve

Description

Computes the centroid of a curve

Usage

get_curve_centroid(betafun)

Value

A numeric vector of length \(L\) storing the centroid of the curve.

Arguments

betafun

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

Examples

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

Run the code above in your browser using DataLab