Home > freetb4matlab > statistics > base > mode.m

mode

PURPOSE ^

% Count the most frequently appearing value. @code{mode} counts the

SYNOPSIS ^

function [m, f, c] = mode (x, dim)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {[@var{m}, @var{f}, @var{c}] =} mode (@var{x}, @var{dim})
% Count the most frequently appearing value.  @code{mode} counts the 
% frequency along the first non-singleton dimension and if two or more
% values have the same frequency returns the smallest of the two in
% @var{m}.  The dimension along which to count can be specified by the
% @var{dim} parameter.
%
% The variable @var{f} counts the frequency of each of the most frequently 
% occurring elements.  The cell array @var{c} contains all of the elements
% with the maximum frequency .
% @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