Home > freetb4matlab > statistics > normstat.m

normstat

PURPOSE ^

% Compute mean and variance of the normal distribution.

SYNOPSIS ^

function [mn, v] = normstat (m, s)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {[@var{mn}, @var{v}] =} normstat (@var{m}, @var{s})
% Compute mean and variance of the normal distribution.
%
% @subheading Arguments
%
% @itemize @bullet
% @item
% @var{m} is the mean of the normal distribution
%
% @item
% @var{s} is the standard deviation of the normal distribution.
% @var{s} must be positive
% @end itemize
% @var{m} and @var{s} must be of common size or one of them must be
% scalar
%
% @subheading Return values
%
% @itemize @bullet
% @item
% @var{mn} is the mean of the normal distribution
%
% @item
% @var{v} is the variance of the normal distribution
% @end itemize
%
% @subheading Examples
%
% @example
% @group
% m = 1:6;
% s = 0:0.2:1;
% [mn, v] = normstat (m, s)
% @end group
%
% @group
% [mn, v] = normstat (0, s)
% @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