C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 05-06-2008, 02:58 PM   #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.
aeldes1 is offline   Reply With Quote
Old 05-08-2008, 11:22 AM   #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

Quote:
.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.
aeldes1 is offline   Reply With Quote
Old 05-12-2008, 01:23 PM   #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.
aeldes1 is offline   Reply With Quote
Reply

Tags
chi square, statistics

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 10:00 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

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