Home > freetb4matlab > statistics > betastat.m

betastat

PURPOSE ^

% Compute mean and variance of the beta distribution.

SYNOPSIS ^

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

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {[@var{m}, @var{v}] =} betastat (@var{a}, @var{b})
% Compute mean and variance of the beta distribution.
%
% @subheading Arguments
%
% @itemize @bullet
% @item
% @var{a} is the first parameter of the beta distribution. @var{a} must be
% positive
%
% @item
% @var{b} is the second parameter of the beta distribution. @var{b} must be
% positive
% @end itemize
% @var{a} and @var{b} must be of common size or one of them must be scalar
%
% @subheading Return values
%
% @itemize @bullet
% @item
% @var{m} is the mean of the beta distribution
%
% @item
% @var{v} is the variance of the beta distribution
% @end itemize
%
% @subheading Examples
%
% @example
% @group
% a = 1:6;
% b = 1:0.2:2;
% [m, v] = betastat (a, b)
% @end group
%
% @group
% [m, v] = betastat (a, 1.5)
% @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 Fri 22-May-2009 15:13:00 by m2html © 2003