Inverse chi square cumulative distribution

This is a discussion on Inverse chi square cumulative distribution within the C Programming forums, part of the General Programming Boards category; Hello, I need to use the inverse chi square cumulative distribution as part of a bigger program to predict pass/fail ...

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    15

    Inverse chi square cumulative distribution

    Hello,

    I need to use the inverse chi square cumulative distribution as part of a bigger program to predict pass/fail criteria. MatLab has a great implementation of this function; however I would rather not have to rely on MatLab. The function in matlab is described here.


    Personally, I can't imagine where I would start coding such a function. Actually I have very little knowledge of how it works. I just need to use it. I tried using the GNU Scientific library, but could not get it work with my compiler (I am using Visual C++ under Windows 2000, coding in C).

    I was wondering if any one knows of a better suited library which I can install and use with my compiler, or perhaps if you have any recommendations about coding such a function, or if you have the code already and would not mind sharing.

    Thanks in advance.

  2. #2
    Registered User
    Join Date
    Apr 2008
    Posts
    15
    So after a bit of playing around with my compiler, I discovered that the GSL works with Dev-C++ on Windows with no problems. What you need to do to get it to work with Dev-C++ is described here.

    Unfortunately for me however I am using an .obj resource file, which I can't get to compile with Dev-C++. I added it under Project Options>> Parameters>>Linker>> Add Library or Object. That made the compile know that it's there (because before it would give me errors that certain functions are not defined). However, when I try to compile now I get the following error

    .drectve `-defaultlib:uuid.lib ' unrecognized

    I trying searching the net but with no hope so far. Any ideas out there? If you can help me solve the Dev-C++ uuid.lib problem or if you have experience with GSL on Visual C++ that would be great.

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    15
    Following up on this,

    I gave up on trying to code the actual inverse cumulative chi square function. Instead, I am using a data fitting program from here: http://www.oakdaleengr.com/ to find an approximation, and I will code that function instead.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Tic Tac Toe Comp Move help
    By swgh in forum C++ Programming
    Replies: 5
    Last Post: 09-24-2008, 11:05 AM
  2. Loop seg error
    By Zishaan in forum Game Programming
    Replies: 2
    Last Post: 03-28-2007, 01:27 PM
  3. Forced moves trouble!!
    By Zishaan in forum Game Programming
    Replies: 0
    Last Post: 03-27-2007, 06:57 PM
  4. Help with my draughts game
    By Zishaan in forum C++ Programming
    Replies: 9
    Last Post: 03-24-2007, 07:33 AM
  5. C++ Checkers Game
    By SnS CEO in forum C++ Programming
    Replies: 9
    Last Post: 09-07-2005, 01:21 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21