home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2398 / status.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-28  |  2.0 KB  |  84 lines

  1. /* ----------------------------------------------------------------------------
  2.  
  3. nlmdl: status.h
  4.  
  5. nlmdl is a C++ implementation of the statistical methods in A. Ronald 
  6. Gallant, "Nonlinear Statistical Models," New York: John Wiley and Sons, 
  7. 1987, ISBN 0-471-80260-3, using a matrix class realmat that is distributed 
  8. with it.  The header files nlmdl.h and realmat.h describe the use of the 
  9. program and matrix class, respectively.  
  10.  
  11. Copyright (C) 1990.
  12.  
  13. A. Ronald Gallant
  14. P.O. Box 5513 
  15. Raleigh NC 27650-5513 
  16. USA   
  17.  
  18. Permission to use, copy, modify, and distribute this software and its 
  19. documentation for any purpose and without fee is hereby granted, provided 
  20. that the above copyright notice appear in all copies and that both that 
  21. copyright notice and this permission notice appear in supporting 
  22. documentation.  
  23.  
  24. This software is provided "as is" without any expressed or implied warranty.
  25.  
  26. ---------------------------------------------------------------------------- */
  27. /* status is a class used by nlmdl */
  28.  
  29. #ifndef __FILE_STATUS_H_SEEN__
  30. #pragma once
  31. #define __FILE_STATUS_H_SEEN__ 1
  32.  
  33. #include "usual.h"
  34. #include "realmat.h"
  35. #include "tools.h"
  36.  
  37.  
  38.  
  39. #define MAX_STATUS_LINE    256
  40. #define STARTING_FILENAME  "starting.dat"
  41. #define ENDING_FILENAME    "ending.dat"
  42.  
  43. enum display_mode {START_UP, VAR_ITERATE, THETA_ITERATE, TERMINATION};
  44.  
  45. class status 
  46. {
  47. public:
  48.             status();
  49.             ~status();
  50.  
  51.   char      switches[MAX_STATUS_LINE];
  52.   char      method[MAX_STATUS_LINE];
  53.   INTEGER   n;
  54.   INTEGER   M;
  55.   INTEGER   K;
  56.   INTEGER   p;
  57.   INTEGER   itheta;
  58.   INTEGER   ivar;
  59.   char      vartype[MAX_STATUS_LINE];
  60.   INTEGER   MA;
  61.   char      weights[MAX_STATUS_LINE];
  62.   REAL      tol;
  63.   REAL      eps;
  64.   char      detail[MAX_STATUS_LINE];
  65.   INTEGER   rank;
  66.   char      df[MAX_STATUS_LINE];
  67.   realmat   theta;
  68.   realmat   var;
  69.   realmat   V;
  70.   realmat   D;
  71.   REAL      obj;
  72.  
  73.   char*     starting; 
  74.   char*     ending;
  75.  
  76.   int       from(char* filename);
  77.   int       to(char* filename);
  78.   int       display(display_mode);
  79.  
  80. };
  81.  
  82. #endif
  83.  
  84.