raw_moment

Calculates the raw moment.

Syntax

Description

Calculates the k-th raw moment of all the observations.

That is,

ak=1ni=1nxik

where xi,i=1,2,,n represents the i-th observed value.

Examples

Input Arguments

x —— The value of observations, specified as an array of N-D array of length n.

For an n-by-m array, it indicates n observations with m features.


k —— Order of raw moment, specified as a positive integer scalar.

Properties of Arguments

Name of the parametersIs optional?Source, dialog or input port?
xNoInput port
kNoDialog