CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2006
    Posts
    1

    Post Normcdf function

    I want to value of normal cumilative distribution function in my code
    , so as i need not access every time a look up table , for fast accessing , i want to use normcdf . i need c/Vc++ code for normcdf function

  2. #2
    Join Date
    Jun 2003
    Location
    Armenia, Yerevan
    Posts
    720

    Re: Normcdf function

    Write yourself as far as you know what you are talking about, and/or search for the ready code in the net.

  3. #3
    Join Date
    Feb 2002
    Posts
    4,640

    Re: Normcdf function

    Quote Originally Posted by MunishPundir
    I want to value of normal cumilative distribution function in my code
    , so as i need not access every time a look up table , for fast accessing , i want to use normcdf . i need c/Vc++ code for normcdf function
    I'm not familiar with this term. Actually, neither is Google, or Metacrawler!

    Viggy

  4. #4
    Join Date
    Mar 2004
    Location
    Temuco, CHILE
    Posts
    161

    Re: Normcdf function

    "Normal cumilative"? You mean the function that accumulates the normal distribution up to a certain value x?

    You're not going to find a formula for it. At most, an iterative approach based on (x+3)^3 or (x-3)^3 times a constant, which AFAIK is relatively good for 1/4 < abs(x) < 9/4. But not a single "function". You're going to end up with lookup tables.


    Check wolfram.com, they might have a lookup table than can be coded.
    You're not watching "24"?
    Well... you should.

    24
    Jack IS back...

  5. #5
    Join Date
    Feb 2002
    Posts
    4,640

    Re: Normcdf function

    Ooops, I didn't notice that it was spelled wrong:

    http://www.google.com/search?hl=en&q...=Google+Search



    Viggy

  6. #6
    Join Date
    Dec 2006
    Posts
    1

    Re: Normcdf function

    Gnu Scientific Library
    http://www.gnu.org/software/gsl/

    This has a normal cdf function in it. (In C++)

    You might also try numerical recipes

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured