Home > freetb4matlab > statistics > base > kurtosis.m

kurtosis

PURPOSE ^

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

SYNOPSIS ^

function retval = kurtosis (x, dim)

DESCRIPTION ^

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