Ignore:
Timestamp:
Apr 27, 2001, 2:52:15 AM (24 years ago)
Author:
ansari
Message:

debug deglitcher - Ajout Filtre Fourier (SimpleFourierFilter) - Reza 27/4/2001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/ProcWSophya/simtoipr.h

    r1478 r1479  
    1414class SimpleDeglitcher : public TOIProcessor {
    1515public:
    16                 SimpleDeglitcher(int wsz=64, double ns=3, int maxnpt=5);
     16                SimpleDeglitcher(int wsz=64, double ns=3,
     17                                 int maxnpt=5, int minnpt=2);
    1718  virtual       ~SimpleDeglitcher();
    1819
     
    2627
    2728
    28   void          SetDetectionParam(double ns, double ns2, int maxnpt, int wszrec=0);
     29  void          SetDetectionParam(double ns, double ns2, int maxnpt,
     30                                  int minnpt, int wszrec=0);
    2931   
    3032  inline void   RepBadSamples(bool gl_samples, bool out_range_samples, bool use_wrec=true)
     
    4042  inline double NbSigmas2() const { return nsig2; }
    4143  inline int    MaxPoints() const { return maxpoints; }
     44  inline int    MinPoints() const { return minpoints; }
    4245 
    4346  inline int_8  ProcessedSampleCount() const { return totnscount; }
     
    6164  double nsig2;     // Seuil en nb de sigmas, pour les points suivants le 1er
    6265  int maxpoints;    // Nb maxi de points > ns sigmas
     66  int minpoints;    // Nb mini de points > ns sigmas pour avoir un glitch
    6367  double range_min, range_max;  // Range acceptable pour in
    6468
     
    136140
    137141
     142//  Un filtre simple, dans le domaine de Fourier
     143//  InverseFFT ( FFT(Vecteur(in)) * FilterCoefficient )
     144
     145class SimpleFourierFilter : public TOIProcessor {
     146public:
     147                SimpleFourierFilter(Vector const & vc); 
     148                ~SimpleFourierFilter();
     149
     150  inline int    WSize() const { return wsize; }
     151  inline int_8  ProcessedSampleCount() const { return totnscount; }
     152  inline Vector FilterCoefficients() const
     153                { Vector rcv; rcv = ffcoef; return(rcv); }
     154
     155  virtual void  PrintStatus(ostream & os) ; // const plus tard
     156
     157  virtual void  init(); 
     158  virtual void  run();
     159
     160  inline  void  KeepSpectra(int nb=0)
     161                { nb_keep = nb; }
     162protected:
     163  int_8 totnscount;   // Nombre total d'echantillon processe
     164  int wsize;         // Taille de fenetre de travail
     165  Vector ffcoef;     // Coefficients du filtre
     166  int nb_keep;
     167};
     168
     169
    138170//  Classe SimpleFanOut
    139 //  Transforme recopie chaque entree sur M lignes de sortie
     171//  Recopie chaque entree sur M lignes de sortie
    140172
    141173class SimpleFanOut : public TOIProcessor {
     
    159191};
    160192
     193
    161194#endif
Note: See TracChangeset for help on using the changeset viewer.