Home > freetb4matlab > statistics > base > skewness.m

skewness

PURPOSE ^

% If @var{x} is a vector of length @math{n}, return the skewness

SYNOPSIS ^

function retval = skewness (x, dim)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} skewness (@var{x}, @var{dim})
% If @var{x} is a vector of length @math{n}, return the skewness
% @tex
% $$
% {\rm skewness} (x) = {1\over N \sigma(x)^3} \sum_{i=1}^N (x_i-\bar{x})^3
% $$
% where $\bar{x}$ is the mean value of $x$.
% @end tex
% @ifnottex
%
% @example
% skewness (x) = N^(-1) std(x)^(-3) sum ((x - mean(x)).^3)
% @end example
% @end ifnottex
%
% @noindent
% of @var{x}.  If @var{x} is a matrix, return the skewness along the
% first non-singleton dimension of the matrix.  If the optional
% @var{dim} argument is given, operate along this dimension.
% @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