home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / autopsp.zip / REGRESS / CTD.H < prev    next >
C/C++ Source or Header  |  1995-07-22  |  704b  |  23 lines

  1. // CTD
  2. // Class for the t Distribution curve and it's integral.
  3.  
  4. #include "CSimp.h"
  5.  
  6. class CTD : public CSimpson
  7. {
  8.   public:
  9.   CTD(void);                      // Constructor.
  10.  
  11.   void SetN(double N);            // Sets the private n value
  12.  
  13.   double IntMe(double x);         // Function to be integrated.
  14.                                   // DoMath deals with the Gamma
  15.                                   //   part of the t distribution and
  16.                                   //   calls the Integrator.
  17.   double DoMath(double lower, double upper, double total);
  18.  
  19.   private:
  20.   double value;                   // Temporary variable
  21.   double n;                       // n from equation
  22. };
  23.