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$>
References: <jcvfv8$6pt$> <jd5cmk$cmu$> <k7jh0a$bov$> <k7ph5v$7jj$> <k7qguc$iic$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1352741654 29154 (12 Nov 2012 17:34:14 GMT)
NNTP-Posting-Date: Mon, 12 Nov 2012 17:34:14 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: comp.soft-sys.matlab:782615

"Skirt Zhang" <> wrote in message <k7qguc$iic$>...
> 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