home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 41 / IOPROG_41.ISO / soft / c++ / NUMCPP11.ZIP / rankdist.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-04-10  |  2.6 KB  |  68 lines

  1. //===================================================================
  2. // rankdist.h
  3. //
  4. // Version 1.1
  5. //
  6. // Written by:
  7. //   Brent Worden
  8. //   WordenWare
  9. //   email:  Brent@Worden.org
  10. //
  11. // Copyright (c) 1998-1999 WordenWare
  12. //
  13. // Created:  August 28, 1998
  14. // Revised:  April 10, 1999
  15. //===================================================================
  16.  
  17. #ifndef _RANKSTAT_H_
  18. #define _RANKSTAT_H_
  19.  
  20. #include "numerics.h"
  21.  
  22. NUM_BEGIN
  23.  
  24. NUMERICS_EXPORT double ansbradp(double x, int m, int n);
  25. //-------------------------------------------------------------------
  26. // Returns the value of the null distribution function of the
  27. // Ansary-Bradley Test at the value x with sample sizes m and n.
  28. //-------------------------------------------------------------------
  29.  
  30. NUMERICS_EXPORT double wilcoxonp(int w, int n);
  31. //-------------------------------------------------------------------
  32. // Returns the value of the null distribution function of the
  33. // Wilcoxon Signed Rank Test at the value w with sample size n.
  34. //-------------------------------------------------------------------
  35.  
  36. NUMERICS_EXPORT void wilcoxonv(double p, int n, int *w0, int *w1);
  37. //-------------------------------------------------------------------
  38. // Returns two critical points of the Wilcoxon Signed Rank Test null
  39. // distribution function with sample size of n trials such that
  40. // P(W <= w0) <= p <= P(W <= w1).
  41. //-------------------------------------------------------------------
  42.  
  43. NUMERICS_EXPORT double wilmannwhitp(int w, int m, int n);
  44. //-------------------------------------------------------------------
  45. // Returns the value of the null distribution function of the
  46. // Wilcoxon-Mann-Whitney Rank Sum Test at the value w with sample
  47. // sizes m and n.  w is a value from the Wilcoxon form of the test.
  48. //-------------------------------------------------------------------
  49.  
  50. NUMERICS_EXPORT void wilmannwhitv(double p, int m, int n, int *w0, int *w1);
  51. //-------------------------------------------------------------------
  52. // Returns two critical points of the Wilcoxon-Mann-Whitney Rank Sum
  53. // Test null distribution function with sample size of n trials such
  54. // that P(W <= w0) <= p <= P(W <= w1).  w0 and w1 are values from the
  55. // Wilcoxon from of the test.
  56. //-------------------------------------------------------------------
  57.  
  58. NUM_END
  59.  
  60. #endif
  61.  
  62. //===================================================================
  63. // Revision History
  64. //
  65. // Version 1.0 - 08/28/1998 - New.
  66. // Version 1.1 - 04/10/1999 - Added Numerics namespace.
  67. //===================================================================
  68.