Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: shuffle without enough memory
Date: Mon, 12 Nov 2012 17:34:14 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 12
Message-ID: <k7rbul$sf2$1@newscl01ah.mathworks.com>
References: <jcvfv8$6pt$1@newscl01ah.mathworks.com> <jd5cmk$cmu$1@newscl01ah.mathworks.com> <k7jh0a$bov$1@newscl01ah.mathworks.com> <k7ph5v$7jj$1@newscl01ah.mathworks.com> <k7qguc$iic$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-04-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1352741654 29154 172.30.248.35 (12 Nov 2012 17:34:14 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 12 Nov 2012 17:34:14 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:782615

"Skirt Zhang" <silence_qunzi@hotmail.com> wrote in message <k7qguc$iic$1@newscl01ah.mathworks.com>...
> For my project, I may have to obtain the permutation as well. Can you help me about this for calculating mean and median for those triple product?

  What do you mean by "permutation" in your "project" with triple products?  Please give more details.

> Hi Roger I see the formulae for the triple product PiPjPk but how about the mean value for PiPk? 

  For vector R of length n the mean value of its "double" products would be:

 mv = (sum(R)^2-sum(R.^2))/(n*(n-1));

Roger Stafford