Path: news.mathworks.com!not-for-mail
From: "John D'Errico" <woodchips@rochester.rr.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to generate random variable with constraint?
Date: Tue, 20 Jul 2010 18:40:34 +0000 (UTC)
Organization: John D'Errico (1-3LEW5R)
Lines: 16
Message-ID: <i24qj2$pi6$1@fred.mathworks.com>
References: <i22vhv$frn$1@fred.mathworks.com> <i24er8$7qs$1@fred.mathworks.com> <Jbj1o.16614$Bh2.16201@newsfe04.iad> <i24fnn$6pu$1@fred.mathworks.com> <YKj1o.92592$Lj2.82402@newsfe05.iad> <i24i60$gfp$1@fred.mathworks.com> <i24l9s$auq$1@fred.mathworks.com> <i24oic$env$1@fred.mathworks.com>
Reply-To: "John D'Errico" <woodchips@rochester.rr.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1279651234 26182 172.30.248.37 (20 Jul 2010 18:40:34 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 20 Jul 2010 18:40:34 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869215
Xref: news.mathworks.com comp.soft-sys.matlab:654679

"Matt J " <mattjacREMOVE@THISieee.spam> wrote in message <i24oic$env$1@fred.mathworks.com>...
> "John D'Errico" <woodchips@rochester.rr.com> wrote in message <i24l9s$auq$1@fred.mathworks.com>...
> 
> > I don't even see the sort as more complex, nor does
> > MATLAB. Try this:
> ===========
> 
> That's only because you're working in 2 dimensions. In higher dimensions, complexity theory of sorting vs. summation gaurantees that sorting will do worse. Try this modification: 
> 

No, if you bothered to look at my test, it was done
in 5 dimensions. Yes, if you solve a very different
problem from that which was asked about, the time
will be different.

John