compute_absolute_moment: Absolute Moment of Order k

View source: R/RcppExports.R

compute_absolute_momentR Documentation

Absolute Moment of Order k

Description

Computes the absolute moment of order k of a sample of observations.

Usage

compute_absolute_moment(obs, k)

Arguments

obs

Observations (type: armadillo numeric vector).

k

Moment order (type: double)

Value

Moment value (type: double)

Examples

rvs <- stabledist::rstable(100000, 1.9, 0.5, 1, 0, pm = 0)
absolute_moment <- compute_absolute_moment(rvs, 2)

finity documentation built on June 22, 2024, 11:06 a.m.