tounsorted: Compute an Unsorted Central Moment Object from a Sorted...

tounsortedR Documentation

Compute an Unsorted Central Moment Object from a Sorted Object

Description

Produces an unsorted central moment object from a sorted object of class 'moment'.

Usage

tounsorted(moment, sorted.moment)

Arguments

moment

The unsorted target moment to obtain, specified in vector form (e.g., c(3, 1, 2)).

sorted.moment

A sorted object of class 'moment' to use as the base for creating the unsorted moment.

Details

Unsorted moments are those whose exponents are not in sorted numerical order (e.g., m312 vs m123). The unsorted moment's representation is calculated by rearranging the rows and columns of the sorted moment's matrices successively.

Value

An object of class 'moment', which is a list containing the following three components:

moment

The input unsorted moment vector.

representation

A matrix containing the representation in terms of upper-triangular matrices, rearranged to match the target unsorted order.

coefficients

A numeric vector of the coefficients corresponding to the rows of the representation matrix.

Author(s)

Kem Phillips kemphillips@comcast.net

References

#' \insertRefPhillips2010symmoments

See Also

multmoments, callmultmoments

Examples

# Obtain unsorted moment m312 from sorted base m123
tounsorted(c(3, 1, 2), callmultmoments(c(1, 2, 3)))


symmoments documentation built on May 27, 2026, 9:06 a.m.