Path: news.mathworks.com!not-for-mail
From: Peter Perkins <Peter.PerkinsRemoveThis@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Which ML function for variance?
Date: Wed, 03 Oct 2007 11:16:04 -0400
Organization: The MathWorks, Inc.
Lines: 7
Message-ID: <fe0bnk$etm$2@fred.mathworks.com>
References: <fdtmlg$t1j$1@fred.mathworks.com> <fdtr7h$2q9$1@fred.mathworks.com> <fdttrj$p62$1@fred.mathworks.com>
NNTP-Posting-Host: perkinsp.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1191424564 15286 172.31.57.88 (3 Oct 2007 15:16:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 3 Oct 2007 15:16:04 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
In-Reply-To: <fdttrj$p62$1@fred.mathworks.com>
Xref: news.mathworks.com comp.soft-sys.matlab:431197



John D'Errico wrote:

> res = sqrt(sum(differences.^2/(length(differences)-1));

res = norm(differences)/sqrt(length(differences)-1);

would also work well.