Changeset 852 in Sophya


Ignore:
Timestamp:
Apr 10, 2000, 2:59:45 PM (25 years ago)
Author:
ansari
Message:

nbrandom-> SysTools/srandgen.h .c + suppr. pclassid.h Reza 10/4/2000

Location:
trunk/SophyaLib/NTools
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/NTools/NTools.o.list

    r805 r852  
    2222median.o
    2323nbmath.o
    24 nbrandom.o
    2524nbtri.o
    2625ntoolsinit.o
  • trunk/SophyaLib/NTools/cimage.h

    r220 r852  
    3434  virtual ~Image();
    3535
    36   int_4                 ClassId() const       { return (ClassId_Image+DataType((T)0)); }
    3736  static PPersist*      Create()              { return new Image<T>;}
    3837
  • trunk/SophyaLib/NTools/nbrandom.h

    r682 r852  
    55#define NBRANDOM_H_SEEN
    66
    7 #include "machdefs.h"
    8 #include <stdlib.h>
    9 #ifdef __MWERKS__
    10 #include "unixmac.h"
    11 #endif
     7/*   Pour compatibilite anterieure R. Ansari 04/2000  */
     8/*                remplace par srandgen.h             */
    129
    13 #define frand01() ( (float) drand48() )
    14 #define drand01() ( drand48() )
    15 #define ranf01() drand01()
    16 
    17 #define frandpm1() ( 2. * frand01() - 1.)
    18 #define drandpm1() ( 2. * drand01() - 1.)
    19 #define ranfpm1() drandpm1()
    20 
    21 struct tirage_alea {
    22   int Nbin;
    23   double Min,Max,Lbin;
    24   double *Tab;
    25 };
    26 typedef struct tirage_alea TIREALEA;
    27 
    28 #ifdef __cplusplus
    29 extern "C" {
    30 #endif
    31 
    32 void Ini_Ranf_Quick(long seed_val, int lp);
    33 void Ini_Ranf(unsigned short seed_16v[3], int lp);
    34 void Get_Ranf(unsigned short seed_16v[3], int lp);
    35 void Auto_Ini_Ranf(int lp);
    36 
    37 void SetGauRange(double range);
    38 float NorRand1(void);
    39 double GauRnd1(double am, double s);
    40 float NorRand(void);
    41 double GauRnd(double am, double s);
    42 int NormCo(double *a,double *b
    43           ,double mx,double my,double sx,double sy,double ro);
    44 void NormGau(double *x,double *y
    45             ,double mx,double my,double sa,double sb,double teta);
    46 
    47 TIREALEA *init_tirage_alea(int nbin,double xmin,double xmax,double (*fonc) (double));
    48 double tirage_alea(TIREALEA *alea);
    49 int end_tirage_alea(TIREALEA *alea);
    50 
    51 #ifdef __cplusplus
    52 }
    53 #endif
     10#include "srandgen.h"
    5411
    5512#endif
  • trunk/SophyaLib/NTools/poly.h

    r805 r852  
    11// This may look like C code, but it is really -*- C++ -*-
    22//
    3 // $Id: poly.h,v 1.5 2000-04-03 17:41:08 ansari Exp $
     3// $Id: poly.h,v 1.6 2000-04-10 12:59:45 ansari Exp $
    44//
    55
     
    2626  Poly(int degre = 0);
    2727  Poly(Poly const& a);
    28 
    29   enum {classId = ClassId_Poly1};
    30   int_4  ClassId() const         { return classId; }
    3128
    3229  inline int Degre() const {UpdateDegIfDirty(); return deg;}
     
    125122  Poly2(Poly const& polX, Poly const& polY);
    126123  Poly2(Poly2 const& a);
    127 
    128   enum {classId = ClassId_Poly2};
    129   int_4 ClassId() const         { return classId; }
    130124
    131125  inline int DegX() const {UpdateDegIfDirty(); return degX;}
  • trunk/SophyaLib/NTools/rzimage.h

    r756 r852  
    3939  //class RzImage EXC_AWARE {
    4040public:
    41   enum {classId = ClassId_Image };
    4241
    4342                RzImage(PBaseDataTypes dType, int sizx, int sizy,
     
    5049  virtual       ~RzImage();
    5150
    52   int_4                 ClassId() const         { return classId; }
    5351  static PPersist*      Create()                { return new RzImage;}
    5452
Note: See TracChangeset for help on using the changeset viewer.