Learn R Programming

finity (version 0.1.5)

compute_absolute_moment: Absolute Moment of Order k

Description

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

Usage

compute_absolute_moment(obs, k)

Value

Moment value (type: double)

Arguments

obs

Observations (type: armadillo numeric vector).

k

Moment order (type: double)

Examples

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

Run the code above in your browser using DataLab