compute_absolute_moment {finity}R 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)

[Package finity version 0.1.5 Index]