Logo coherent WaveBurst  
Library Reference Guide
Logo
List of all members | Public Member Functions | Private Member Functions | Private Attributes | List of all members
gWSeries< DataType_t > Class Template Reference

template<class DataType_t>
class gWSeries< DataType_t >

Definition at line 35 of file gwseries.hh.

Public Member Functions

 gWSeries ()
 
 gWSeries (const WSeries< DataType_t > &)
 
 gWSeries (const WSeries< DataType_t > *)
 
virtual ~gWSeries ()
 
virtual void Browse (TBrowser *b)
 
void Draw (GWAT_DRAW type=GWAT_TIME, TString options="ALP", Color_t color=kBlack)
 
void Draw (wavearray< DataType_t > *x, GWAT_DRAW type=GWAT_TIME, TString options="ALP", Color_t color=kBlack)
 
void Draw (WSeries< DataType_t > *x, TString options="")
 
watplotDrawFFT (TString options="ALP", Color_t color=kBlack)
 
watplotDrawFFT (wavearray< DataType_t > *x, TString options="ALP", Color_t color=kBlack)
 
watplotDrawSG (TString options="")
 
watplotDrawSG (WSeries< DataType_t > *x, TString options="")
 
CWB::STFTDrawTF (TString options="")
 
CWB::STFTDrawTF (wavearray< DataType_t > *x, TString options="")
 
watplotDrawTime (TString options="ALP", Color_t color=kBlack)
 
watplotDrawTime (wavearray< DataType_t > *x, TString options="ALP", Color_t color=kBlack)
 
void Forward (int n=-1)
 
void Forward (wavearray< DataType_t > &w, int n=-1)
 
void Forward (wavearray< DataType_t > &w, Wavelet &s, int n=-1)
 
double GetCentralTime ()
 
CWB::STFTGetSTFT ()
 
double GetTimeRange (double &tMin, double &tMax)
 
watplotGetWATPLOT ()
 
void PhaseShift (double pShift=0.)
 
void TimeShift (double tShift=0.)
 
- Public Member Functions inherited from WSeries< DataType_t >
 WSeries ()
 
 WSeries (const Wavelet &w)
 
 WSeries (const wavearray< DataType_t > &value, const Wavelet &w)
 param: value - data to initialize the WSeries object More...
 
 WSeries (const WSeries< DataType_t > &value)
 param: value - object to copy from More...
 
virtual ~WSeries ()
 
void bandpass (wavearray< DataType_t > &ts, double flow, double fhigh, int n=-1)
 
void bandpass (double flow, double fhigh, double a=0.)
 
virtual WSeries< double > calibrate (size_t, double, d_complex *, d_complex *, wavearray< double > &, wavearray< double > &, size_t ch=0)
 param: number of samples in calibration arrays R & C param: frequency resolution param: pointer to response function R in Fourier domain param: pointer to sensing function C in Fourier domain param: time dependent calibration coefficient alpha param: time dependent calibration coefficient gamma param: 0/1 - AS_Q/DARM_ERR calibration, by default is 0 return array with calibration constants for each wavelet layer More...
 
virtual double coincidence (WSeries< DataType_t > &, int=0, int=0, double=0.)
 param: WSeries object used for coincidence param: coincidence window in seconds return pixel occupancy More...
 
virtual double Coincidence (WSeries< DataType_t > &, double=0., double=0.)
 param: WSeries object used for coincidence param: coincidence window in seconds param: threshold on significance return pixel occupancy More...
 
virtual void Dump (const char *, int=0)
 
virtual wavearray< double > filter (size_t)
 param: n - number of decomposition steps algorithm: 1) do forward wavelet transform with n decomposition steps 2) whiten wavelet layers and calculate noise rms as 1/Sum(1/var) 3) do inverse wavelet transform with n reconstruction steps More...
 
void Forward (int n=-1)
 param: wavelet - n is number of steps (-1 means full decomposition) More...
 
void Forward (wavearray< DataType_t > &, int n=-1)
 
void Forward (wavearray< DataType_t > &, Wavelet &, int n=-1)
 
virtual double fraction (double=0., double=0., int=0)
 param: t - sub interval duration. If can not divide on integer More...
 
double frequency (int l)
 
double Gamma2Gauss (TH1F *=NULL)
 
double getbpp () const
 
double gethigh () const
 
int getLayer (wavearray< DataType_t > &w, double n)
 param: n - layer number More...
 
int getLevel ()
 
double getlow () const
 
int getMaxLevel ()
 
DataType_t getSample (int n, double m)
 
std::slice getSlice (double n)
 
virtual double gSignificance (double, double=1., double=0.)
 param: T - sliding window duration in seconds param: f - black pixel fraction param: t - sliding step in seconds options: f = 0 - returns black pixel occupancy options: t = 0 - sliding step = wavelet time resolution. More...
 
void Inverse (int n=-1)
 param: n - number of steps (-1 means full reconstruction) More...
 
bool isWDM ()
 
int layer (double f)
 
virtual void lprFilter (double, int=0, double=0., double=0.)
 
double maxEnergy (wavearray< DataType_t > &ts, Wavelet &w, double=0, int=1, int=0, TH1F *=NULL)
 
size_t maxIndex ()
 
int maxLayer ()
 
virtual void median (double t, bool norm=false)
 
void mul (WSeries< DataType_t > &)
 
virtual WSeries< DataType_t > & operator*= (WSeries< DataType_t > &)
 
virtual WSeries< DataType_t > & operator*= (wavearray< DataType_t > &)
 
virtual WSeries< DataType_t > & operator*= (const DataType_t)
 
virtual WSeries< DataType_t > & operator+= (WSeries< DataType_t > &)
 
virtual WSeries< DataType_t > & operator+= (wavearray< DataType_t > &)
 
virtual WSeries< DataType_t > & operator+= (const DataType_t)
 
virtual WSeries< DataType_t > & operator-= (WSeries< DataType_t > &)
 
virtual WSeries< DataType_t > & operator-= (wavearray< DataType_t > &)
 
virtual WSeries< DataType_t > & operator-= (const DataType_t)
 
WSeries< DataType_t > & operator= (const wavearray< DataType_t > &)
 
WSeries< DataType_t > & operator= (const WSeries< DataType_t > &)
 
WSeries< DataType_t > & operator= (const DataType_t)
 
virtual WSeries< DataType_t > & operator[] (const std::slice &)
 
virtual double percentile (double=0., int=0, WSeries< DataType_t > *=NULL)
 param: f - black pixel fraction param: m - mode options: f = 0 - returns black pixel occupancy m = 1 - set threshold f, returns percentile amplitudes m =-1 - set threshold f, returns wavelet amplitudes m > 1 - random policy,returns percentile amplitudes m <-1 - random policy,returns wavelet amplitudes m = 0 - random pixel selection if m<0 return wavelet amplitudes instead of the percentile amplitude More...
 
virtual double pixclean (double=0.)
 param: S - threshold on pixel significance return pixel occupancy. More...
 
void print ()
 param: int n if n<0, zero pixels defined in mask (regression) if n>=0, zero all pixels except ones defined in the mask param: bool - if true, set WSeries data to be positive if pMask.size()=0, mask(0,true) is equivalent to abs(data) return core pixel occupancy More...
 
void putLayer (wavearray< DataType_t > &, double n)
 param: n - layer number More...
 
void putSample (DataType_t a, int n, double m)
 
virtual void resample (double, int=6)
 
virtual void resize (unsigned int)
 
double resolution (int=0)
 
virtual double rsignificance (size_t=0, double=1.)
 param: n - sub-interval duration in domain units param: f - black pixel fraction options: f = 0 - returns black pixel occupancy More...
 
virtual double rSignificance (double, double=1., double=0.)
 param: T - sliding window duration in seconds param: f - black pixel fraction param: t - sliding step in seconds options: f = 0 - returns black pixel occupancy options: t = 0 - sliding step = wavelet time resolution. More...
 
void setbpp (double f)
 
void sethigh (double f)
 
void setLevel (size_t n)
 
void setlow (double f)
 
void setWavelet (const Wavelet &w)
 
virtual double significance (double, double=1.)
 param: n - sub-interval duration in seconds param: f - black pixel fraction options: f = 0 - returns black pixel occupancy More...
 
size_t sizeZero ()
 
virtual WSeries< float > variability (double=0., double=-1., double=-1.)
 param: first - time window to calculate normalization constants second - low frequency boundary for correction third - high frequency boundary for correction algorithm: 1) sort wavelet amplitudes with the same time stamp 2) calculate left(p) and right(p) amplitudes put (right(p)-left(p))/2 into output array 3) if first parameter >0 - devide WSeries by average variability More...
 
void wavescan (WSeries< DataType_t > **, int, TH1F *=NULL)
 
double wdmPacket (int pattern, char opt='L', TH1F *=NULL)
 
virtual WSeries< double > white (double, int, double=0., double=0.)
 what it does: each wavelet layer is devided into k intervals. More...
 
virtual bool white (WSeries< double > ws, int mode=0)
 
void wrate (double r)
 
double wrate () const
 
size_t xsize ()
 
- Public Member Functions inherited from wavearray< DataType_t >
 wavearray (int)
 
 wavearray ()
 
 wavearray (const wavearray< DataType_t > &)
 
template<class T >
 wavearray (const T *, unsigned int, double=0.)
 
virtual ~wavearray ()
 
void add (const wavearray< DataType_t > &, int=0, int=0, int=0)
 
size_t append (const wavearray< DataType_t > &)
 
size_t append (DataType_t)
 
void cpf (const wavearray< DataType_t > &, int=0, int=0, int=0)
 
virtual void delay (double T)
 
virtual void DumpBinary (const char *, int=0)
 
virtual void DumpObject (const char *)
 
virtual void DumpShort (const char *, int=0)
 
virtual void edge (double s)
 
virtual double edge () const
 
virtual void exponential (double)
 
virtual void FFT (int=1)
 
virtual void FFTW (int=1)
 
DataType_t get (size_t i)
 
DataType_t get (double t, double dt=0.)
 
virtual wavearray< double > getLPRFilter (int, int=0, int=0)
 
virtual int getSampleRank (size_t n, size_t l, size_t r) const
 
virtual int getSampleRankE (size_t n, size_t l, size_t r) const
 
virtual std::slice getSlice () const
 
double getStatistics (double &mean, double &rms) const
 
void hann (void)
 
virtual size_t limit () const
 
virtual size_t limit (const std::slice &) const
 
virtual size_t limit (const wavearray< DataType_t > &) const
 
virtual void lprFilter (wavearray< double > &)
 
virtual void lprFilter (double, int=0, double=0., double=0., int=0)
 
virtual DataType_t max () const
 
virtual void max (wavearray< DataType_t > &)
 
virtual double mean () const
 
virtual double mean (double f)
 
virtual double mean (const std::slice &)
 
virtual void mean (double t, wavearray< DataType_t > *in, bool fl=false, size_t n=1)
 
virtual double median (size_t=0, size_t=0) const
 
virtual void median (double t, wavearray< DataType_t > *in, bool fl=false, size_t n=1)
 
virtual DataType_t min () const
 
virtual wavearray< DataType_t > & operator<< (wavearray< DataType_t > &)
 
wavearray< DataType_t > & operator= (const wavearray< DataType_t > &)
 
wavearray< DataType_t > & operator= (const DataType_t)
 
virtual char * operator>> (char *)
 
virtual DataType_t & operator[] (const unsigned int)
 
void print ()
 
long rand48 (long k=1024)
 
DataType_t rank (double=0.5) const
 
virtual void rate (double r)
 
virtual double rate () const
 
virtual void ReadBinary (const char *, int=0)
 
virtual void ReadShort (const char *)
 
void Resample (const wavearray< DataType_t > &, double, int=6)
 
void resample (const wavearray< DataType_t > &, double, int=6)
 
virtual void Resample (double)
 
virtual void resetFFTW ()
 
virtual double rms ()
 
virtual double rms (const std::slice &)
 
virtual void rms (double t, wavearray< DataType_t > *in, bool fl=false, size_t n=1)
 
virtual void setSlice (const std::slice &s)
 
virtual size_t size () const
 
virtual void spesla (double, double, double=0.)
 
virtual void SQRT ()
 
double Stack (const wavearray< DataType_t > &, int)
 
double Stack (const wavearray< DataType_t > &, int, int)
 
double Stack (const wavearray< DataType_t > &, double)
 
virtual void start (double s)
 
virtual double start () const
 
virtual void stop (double s)
 
virtual double stop () const
 
void sub (const wavearray< DataType_t > &, int=0, int=0, int=0)
 
long uniform ()
 
size_t wavecount (double x, int n=0)
 
virtual void waveSort (DataType_t **pp, size_t l=0, size_t r=0) const
 
virtual void waveSort (size_t l=0, size_t r=0)
 
virtual void waveSplit (DataType_t **pp, size_t l, size_t r, size_t m) const
 
virtual DataType_t waveSplit (size_t l, size_t r, size_t m)
 
virtual void waveSplit (size_t m)
 
virtual wavearray< double > white (double, int=0, double=0., double=0.) const
 

Private Member Functions

void Init ()
 

Private Attributes

gwavearray< DataType_t > * gw
 
int rnID
 
bool wsextern
 

Additional Inherited Members

- Static Public Member Functions inherited from wavearray< DataType_t >
static int compare (const void *x, const void *y)
 pointer to inverse fftw object More...
 
- Public Attributes inherited from WSeries< DataType_t >
double bpp
 
double f_high
 
double f_low
 
WaveDWT< DataType_t > * pWavelet
 
size_t w_mode
 
double wRate
 
- Public Attributes inherited from wavearray< DataType_t >
DataType_t * data
 
double Edge
 
TFFTRealComplex * fftw
 
TFFTComplexReal * ifftw
 pointer to direct fftw object More...
 
double Rate
 
size_t Size
 data array More...
 
std::slice Slice
 
double Start
 
double Stop
 

#include <gwseries.hh>

Inheritance diagram for gWSeries< DataType_t >:
[legend]

Constructor & Destructor Documentation

◆ gWSeries() [1/3]

template<class DataType_t>
gWSeries< DataType_t >::gWSeries ( )
inline

Definition at line 39 of file gwseries.hh.

◆ gWSeries() [2/3]

template<class DataType_t >
gWSeries< DataType_t >::gWSeries ( const WSeries< DataType_t > &  w)

Definition at line 64 of file gwseries.cc.

◆ gWSeries() [3/3]

template<class DataType_t >
gWSeries< DataType_t >::gWSeries ( const WSeries< DataType_t > *  w)

Definition at line 69 of file gwseries.cc.

◆ ~gWSeries()

template<class DataType_t >
gWSeries< DataType_t >::~gWSeries ( )
virtual

Definition at line 50 of file gwseries.cc.

Member Function Documentation

◆ Browse()

template<class DataType_t>
virtual void gWSeries< DataType_t >::Browse ( TBrowser *  b)
inlinevirtual

Reimplemented from WSeries< DataType_t >.

Definition at line 89 of file gwseries.hh.

◆ Draw() [1/3]

template<class DataType_t>
void gWSeries< DataType_t >::Draw ( GWAT_DRAW  type = GWAT_TIME,
TString  options = "ALP",
Color_t  color = kBlack 
)
inline

Definition at line 52 of file gwseries.hh.

◆ Draw() [2/3]

template<class DataType_t>
void gWSeries< DataType_t >::Draw ( wavearray< DataType_t > *  x,
GWAT_DRAW  type = GWAT_TIME,
TString  options = "ALP",
Color_t  color = kBlack 
)
inline

Definition at line 65 of file gwseries.hh.

◆ Draw() [3/3]

template<class DataType_t>
void gWSeries< DataType_t >::Draw ( WSeries< DataType_t > *  x,
TString  options = "" 
)
inline

Definition at line 69 of file gwseries.hh.

◆ DrawFFT() [1/2]

template<class DataType_t>
watplot* gWSeries< DataType_t >::DrawFFT ( TString  options = "ALP",
Color_t  color = kBlack 
)
inline

Definition at line 58 of file gwseries.hh.

◆ DrawFFT() [2/2]

template<class DataType_t>
watplot* gWSeries< DataType_t >::DrawFFT ( wavearray< DataType_t > *  x,
TString  options = "ALP",
Color_t  color = kBlack 
)
inline

Definition at line 74 of file gwseries.hh.

◆ DrawSG() [1/2]

template<class DataType_t>
watplot* gWSeries< DataType_t >::DrawSG ( TString  options = "")
inline

Definition at line 62 of file gwseries.hh.

◆ DrawSG() [2/2]

template<class DataType_t >
watplot * gWSeries< DataType_t >::DrawSG ( WSeries< DataType_t > *  x,
TString  options = "" 
)

Definition at line 105 of file gwseries.cc.

◆ DrawTF() [1/2]

template<class DataType_t>
CWB::STFT* gWSeries< DataType_t >::DrawTF ( TString  options = "")
inline

Definition at line 60 of file gwseries.hh.

◆ DrawTF() [2/2]

template<class DataType_t>
CWB::STFT* gWSeries< DataType_t >::DrawTF ( wavearray< DataType_t > *  x,
TString  options = "" 
)
inline

Definition at line 76 of file gwseries.hh.

◆ DrawTime() [1/2]

template<class DataType_t>
watplot* gWSeries< DataType_t >::DrawTime ( TString  options = "ALP",
Color_t  color = kBlack 
)
inline

Definition at line 56 of file gwseries.hh.

◆ DrawTime() [2/2]

template<class DataType_t>
watplot* gWSeries< DataType_t >::DrawTime ( wavearray< DataType_t > *  x,
TString  options = "ALP",
Color_t  color = kBlack 
)
inline

Definition at line 72 of file gwseries.hh.

◆ Forward() [1/3]

template<class DataType_t>
void gWSeries< DataType_t >::Forward ( int  n = -1)
inline

Definition at line 43 of file gwseries.hh.

◆ Forward() [2/3]

template<class DataType_t>
void gWSeries< DataType_t >::Forward ( wavearray< DataType_t > &  w,
int  n = -1 
)
inline

Definition at line 45 of file gwseries.hh.

◆ Forward() [3/3]

template<class DataType_t>
void gWSeries< DataType_t >::Forward ( wavearray< DataType_t > &  w,
Wavelet s,
int  n = -1 
)
inline

Definition at line 47 of file gwseries.hh.

◆ GetCentralTime()

template<class DataType_t>
double gWSeries< DataType_t >::GetCentralTime ( )
inline

Definition at line 81 of file gwseries.hh.

◆ GetSTFT()

template<class DataType_t>
CWB::STFT* gWSeries< DataType_t >::GetSTFT ( )
inline

Definition at line 85 of file gwseries.hh.

◆ GetTimeRange()

template<class DataType_t>
double gWSeries< DataType_t >::GetTimeRange ( double &  tMin,
double &  tMax 
)
inline

Definition at line 80 of file gwseries.hh.

◆ GetWATPLOT()

template<class DataType_t>
watplot* gWSeries< DataType_t >::GetWATPLOT ( )
inline

Definition at line 86 of file gwseries.hh.

◆ Init()

template<class DataType_t >
void gWSeries< DataType_t >::Init ( )
private

Definition at line 92 of file gwseries.cc.

◆ PhaseShift()

template<class DataType_t>
void gWSeries< DataType_t >::PhaseShift ( double  pShift = 0.)
inline

Definition at line 83 of file gwseries.hh.

◆ TimeShift()

template<class DataType_t>
void gWSeries< DataType_t >::TimeShift ( double  tShift = 0.)
inline

Definition at line 82 of file gwseries.hh.

Member Data Documentation

◆ gw

template<class DataType_t>
gwavearray<DataType_t>* gWSeries< DataType_t >::gw
private

Definition at line 95 of file gwseries.hh.

◆ rnID

template<class DataType_t>
int gWSeries< DataType_t >::rnID
private

Definition at line 99 of file gwseries.hh.

◆ wsextern

template<class DataType_t>
bool gWSeries< DataType_t >::wsextern
private

Definition at line 100 of file gwseries.hh.


The documentation for this class was generated from the following files: