For Programmers: Free Programming Magazines  


Home > Archive > Clarion > February 2005 > Hypergeometric Distribution in Clarion









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Hypergeometric Distribution in Clarion
Taz

2005-02-08, 3:55 pm

Does anyone have some code snippets they'd be willing to share which
perform Hypergeometric Distribution calculations? Basically this is
used to determine the odds of drawing certain cards out of a certain
size deck...etc. Excel has HYPGEOMDIST function built-in, not that that
helps me with this program I'm writing, but it seems even trying to
perform a Factorial on a number larger than 20, exceeds my data type
size range.

Any help would be appreciated.

Cheers,

Ian Smith

2005-02-09, 8:55 pm

"Taz" <johnmichaelbaugh@bradv.com> wrote in message news:<1107873532.687439.324800@f14g2000cwb.googlegroups.com>...
> Does anyone have some code snippets they'd be willing to share which
> perform Hypergeometric Distribution calculations? Basically this is
> used to determine the odds of drawing certain cards out of a certain
> size deck...etc. Excel has HYPGEOMDIST function built-in, not that that
> helps me with this program I'm writing, but it seems even trying to
> perform a Factorial on a number larger than 20, exceeds my data type
> size range.
>
> Any help would be appreciated.
>
> Cheers,


I'm afraid I know nothing of Clarion but you did say any help would be
appreciated. This was my response to a similar request for Java code
http://groups.google.co.uk/groups?h...ting.google.com

VBA code can be found at
http://members.aol.com/iandjmsmith/Examples.txt which may be easier to
translate to Clarion than Javascript. As the code is really a package
for a number of basic statistical distributions, it may contain lots
of functions you don't want, though it can be pruned down quite
easily.

Ian Smith
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com