Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Sample Probabilities

by BrowserUk (Patriarch)
on Dec 08, 2006 at 07:20 UTC ( [id://588539]=note: print w/replies, xml ) Need Help??


in reply to Re: Sample Probabilities
in thread Sample Probabilities

There appears to have been a C&P error in your code. This line is missing a ;

$total *= lower($sizes->[$_], $sampled[$_]) / fact($sampled[$_])

and by implication of your use of $_, also a for modifier?

Should that be?

$total *= lower($sizes->[$_], $sampled[$_]) / fact($sampled[$_]) for + 0..$n-1;

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://588539]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-24 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found