Home > freetb4matlab > statistics > unifstat.m

unifstat

PURPOSE ^

% Compute mean and variance of the continuous uniform distribution.

SYNOPSIS ^

function [m, v] = unifstat (a, b)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {[@var{m}, @var{v}] =} unifstat (@var{a}, @var{b})
% Compute mean and variance of the continuous uniform distribution.
%
% @subheading Arguments
%
% @itemize @bullet
% @item
% @var{a} is the first parameter of the continuous uniform distribution
%
% @item
% @var{b} is the second parameter of the continuous uniform distribution
% @end itemize
% @var{a} and @var{b} must be of common size or one of them must be scalar
% and @var{a} must be less than @var{b}
%
% @subheading Return values
%
% @itemize @bullet
% @item
% @var{m} is the mean of the continuous uniform distribution
%
% @item
% @var{v} is the variance of the continuous uniform distribution
% @end itemize
%
% @subheading Examples
%
% @example
% @group
% a = 1:6;
% b = 2:2:12;
% [m, v] = unifstat (a, b)
% @end group
%
% @group
% [m, v] = unifstat (a, 10)
% @end group
% @end example
%
% @subheading References
%
% @enumerate
% @item
% Wendy L. Martinez and Angel R. Martinez. @cite{Computational Statistics
% Handbook with MATLAB}. Appendix E, pages 547-557, Chapman & Hall/CRC,
% 2001.
%
% @item
% Athanasios Papoulis. @cite{Probability, Random Variables, and Stochastic
% Processes}. McGraw-Hill, New York, second edition, 1984.
% @end enumerate
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003