Home > freetb4matlab > statistics > base > moment.m

moment

PURPOSE ^

% If @var{x} is a vector, compute the @var{p}-th moment of @var{x}.

SYNOPSIS ^

function m = moment (x, p, opt1, opt2)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} moment (@var{x}, @var{p}, @var{opt}, @var{dim})
% If @var{x} is a vector, compute the @var{p}-th moment of @var{x}.
%
% If @var{x} is a matrix, return the row vector containing the
% @var{p}-th moment of each column.
%
% With the optional string opt, the kind of moment to be computed can
% be specified.  If opt contains @code{'c'} or @code{'a'}, central
% and/or absolute moments are returned.  For example,
%
% @example
% moment (x, 3, 'ac')
% @end example
%
% @noindent
% computes the third central absolute moment of @var{x}.
%
% If the optional argument @var{dim} is supplied, work along dimension
% @var{dim}.
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003