Logo Coherent WaveBurst  
Reference Guide
Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
wavearray< DataType_t > Class Template Reference

template<class DataType_t>
class wavearray< DataType_t >

Definition at line 36 of file wavearray.hh.

Public Member Functions

 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)
 
virtual void Browse (TBrowser *b)
 
void cpf (const wavearray< DataType_t > &, int=0, int=0, int=0)
 
virtual void delay (double T)
 
virtual void Dump (const char *, int=0)
 
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)
 
virtual wavearray< double > getLPRFilter (size_t, size_t=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.)
 
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 > &)
 
virtual wavearray< DataType_t > & operator*= (const DataType_t)
 
virtual wavearray< DataType_t > & operator+= (wavearray< DataType_t > &)
 
virtual wavearray< DataType_t > & operator+= (const DataType_t)
 
virtual wavearray< DataType_t > & operator-= (wavearray< DataType_t > &)
 
virtual wavearray< DataType_t > & operator-= (const DataType_t)
 
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 wavearray< DataType_t > & operator[] (const std::slice &)
 
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, int=6)
 
virtual void Resample (double)
 
virtual void resetFFTW ()
 
virtual void resize (unsigned int)
 
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
 

Static Public Member Functions

static int compare (const void *x, const void *y)
 pointer to inverse fftw object More...
 

Public Attributes

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 <wavearray.hh>

Inheritance diagram for wavearray< DataType_t >:
[legend]

Constructor & Destructor Documentation

template<class DataType_t >
wavearray< DataType_t >::wavearray ( int  n)

Definition at line 46 of file wavearray.cc.

template<class DataType_t >
wavearray< DataType_t >::wavearray ( )

Definition at line 38 of file wavearray.cc.

template<class DataType_t>
wavearray< DataType_t >::wavearray ( const wavearray< DataType_t > &  a)

Definition at line 59 of file wavearray.cc.

template<class DataType_t >
template<class T >
wavearray< DataType_t >::wavearray ( const T p,
unsigned int  n,
double  r = 0. 
)

Definition at line 66 of file wavearray.cc.

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

Definition at line 82 of file wavearray.cc.

Member Function Documentation

template<class DataType_t>
void wavearray< DataType_t >::add ( const wavearray< DataType_t > &  a,
int  length = 0,
int  a_pos = 0,
int  pos = 0 
)

Definition at line 728 of file wavearray.cc.

template<class DataType_t>
size_t wavearray< DataType_t >::append ( const wavearray< DataType_t > &  a)

Definition at line 775 of file wavearray.cc.

template<class DataType_t>
size_t wavearray< DataType_t >::append ( DataType_t  a)

Definition at line 795 of file wavearray.cc.

template<class DataType_t>
virtual void wavearray< DataType_t >::Browse ( TBrowser *  b)
inlinevirtual
template<class DataType_t>
static int wavearray< DataType_t >::compare ( const void *  x,
const void *  y 
)
inlinestatic

pointer to inverse fftw object

Definition at line 315 of file wavearray.hh.

template<class DataType_t>
void wavearray< DataType_t >::cpf ( const wavearray< DataType_t > &  a,
int  length = 0,
int  a_pos = 0,
int  pos = 0 
)

Definition at line 699 of file wavearray.cc.

template<class DataType_t >
void wavearray< DataType_t >::delay ( double  T)
virtual

Definition at line 578 of file wavearray.cc.

template<class DataType_t >
void wavearray< DataType_t >::Dump ( const char *  fname,
int  app = 0 
)
virtual

Reimplemented in WSeries< DataType_t >, WSeries< double >, and WSeries< float >.

Definition at line 301 of file wavearray.cc.

template<class DataType_t >
void wavearray< DataType_t >::DumpBinary ( const char *  fname,
int  app = 0 
)
virtual

Definition at line 335 of file wavearray.cc.

template<class DataType_t >
void wavearray< DataType_t >::DumpObject ( const char *  fname)
virtual

Definition at line 382 of file wavearray.cc.

template<class DataType_t >
void wavearray< DataType_t >::DumpShort ( const char *  fname,
int  app = 0 
)
virtual

Definition at line 356 of file wavearray.cc.

template<class DataType_t>
virtual void wavearray< DataType_t >::edge ( double  s)
inlinevirtual

Definition at line 125 of file wavearray.hh.

template<class DataType_t>
virtual double wavearray< DataType_t >::edge ( ) const
inlinevirtual

Definition at line 126 of file wavearray.hh.

template<class DataType_t >
void wavearray< DataType_t >::exponential ( double  t)
virtual

Definition at line 1662 of file wavearray.cc.

template<class DataType_t >
void wavearray< DataType_t >::FFT ( int  direction = 1)
virtual

Definition at line 814 of file wavearray.cc.

template<class DataType_t >
void wavearray< DataType_t >::FFTW ( int  direction = 1)
virtual

Definition at line 878 of file wavearray.cc.

template<class DataType_t>
DataType_t wavearray< DataType_t >::get ( size_t  i)
inline

Definition at line 265 of file wavearray.hh.

template<class DataType_t >
DataType_t wavearray< DataType_t >::get ( double  t)
inline

Definition at line 363 of file wavearray.hh.

template<class DataType_t >
wavearray< double > wavearray< DataType_t >::getLPRFilter ( size_t  M,
size_t  offset = 0 
)
virtual

Definition at line 1893 of file wavearray.cc.

template<class DataType_t >
int wavearray< DataType_t >::getSampleRank ( size_t  n,
size_t  l,
size_t  r 
) const
virtual

Definition at line 1361 of file wavearray.cc.

template<class DataType_t >
int wavearray< DataType_t >::getSampleRankE ( size_t  n,
size_t  l,
size_t  r 
) const
virtual

Definition at line 1381 of file wavearray.cc.

template<class DataType_t>
virtual std::slice wavearray< DataType_t >::getSlice ( ) const
inlinevirtual

Definition at line 129 of file wavearray.hh.

template<class DataType_t >
double wavearray< DataType_t >::getStatistics ( double &  mean,
double &  rms 
) const

Definition at line 2105 of file wavearray.cc.

template<class DataType_t >
void wavearray< DataType_t >::hann ( void  )
inline

Definition at line 354 of file wavearray.hh.

template<class DataType_t >
size_t wavearray< DataType_t >::limit ( ) const
inlinevirtual

Definition at line 326 of file wavearray.hh.

template<class DataType_t >
size_t wavearray< DataType_t >::limit ( const std::slice s) const
inlinevirtual

Definition at line 330 of file wavearray.hh.

template<class DataType_t>
size_t wavearray< DataType_t >::limit ( const wavearray< DataType_t > &  a) const
inlinevirtual

Definition at line 334 of file wavearray.hh.

template<class DataType_t >
void wavearray< DataType_t >::lprFilter ( wavearray< double > &  w)
virtual

Definition at line 1808 of file wavearray.cc.

template<class DataType_t >
void wavearray< DataType_t >::lprFilter ( double  T,
int  mode = 0,
double  stride = 0.,
double  oFFset = 0. 
)
virtual

Reimplemented in WSeries< DataType_t >, WSeries< double >, and WSeries< float >.

Definition at line 1828 of file wavearray.cc.

template<class DataType_t >
DataType_t wavearray< DataType_t >::max ( ) const
virtual

Definition at line 1316 of file wavearray.cc.

template<class DataType_t>
void wavearray< DataType_t >::max ( wavearray< DataType_t > &  x)
virtual

Definition at line 1326 of file wavearray.cc.

template<class DataType_t >
double wavearray< DataType_t >::mean ( ) const
virtual

Definition at line 1053 of file wavearray.cc.

template<class DataType_t >
double wavearray< DataType_t >::mean ( double  f)
virtual

Definition at line 1065 of file wavearray.cc.

template<class DataType_t >
double wavearray< DataType_t >::mean ( const std::slice s)
virtual

Definition at line 1099 of file wavearray.cc.

template<class DataType_t>
void wavearray< DataType_t >::mean ( double  t,
wavearray< DataType_t > *  in,
bool  fl = false,
size_t  n = 1 
)
virtual

Definition at line 1113 of file wavearray.cc.

template<class DataType_t >
double wavearray< DataType_t >::median ( size_t  l = 0,
size_t  r = 0 
) const
virtual

Definition at line 1558 of file wavearray.cc.

template<class DataType_t>
void wavearray< DataType_t >::median ( double  t,
wavearray< DataType_t > *  in,
bool  fl = false,
size_t  n = 1 
)
virtual

Definition at line 1581 of file wavearray.cc.

template<class DataType_t >
DataType_t wavearray< DataType_t >::min ( ) const
virtual

Definition at line 1350 of file wavearray.cc.

template<class DataType_t>
wavearray< DataType_t > & wavearray< DataType_t >::operator*= ( wavearray< DataType_t > &  a)
virtual

Reimplemented in WSeries< DataType_t >, WSeries< double >, and WSeries< float >.

Definition at line 258 of file wavearray.cc.

template<class DataType_t>
wavearray< DataType_t > & wavearray< DataType_t >::operator*= ( const DataType_t  c)
virtual

Reimplemented in WSeries< DataType_t >, WSeries< double >, WSeries< float >, and WaveRDC.

Definition at line 242 of file wavearray.cc.

template<class DataType_t>
wavearray< DataType_t > & wavearray< DataType_t >::operator+= ( wavearray< DataType_t > &  a)
virtual

Reimplemented in WSeries< DataType_t >, WSeries< double >, and WSeries< float >.

Definition at line 173 of file wavearray.cc.

template<class DataType_t>
wavearray< DataType_t > & wavearray< DataType_t >::operator+= ( const DataType_t  c)
virtual

Reimplemented in WSeries< DataType_t >, WSeries< double >, WSeries< float >, and WaveRDC.

Definition at line 191 of file wavearray.cc.

template<class DataType_t>
wavearray< DataType_t > & wavearray< DataType_t >::operator-= ( wavearray< DataType_t > &  a)
virtual

Reimplemented in WSeries< DataType_t >, WSeries< double >, and WSeries< float >.

Definition at line 208 of file wavearray.cc.

template<class DataType_t>
wavearray< DataType_t > & wavearray< DataType_t >::operator-= ( const DataType_t  c)
virtual

Reimplemented in WSeries< DataType_t >, WSeries< double >, WSeries< float >, and WaveRDC.

Definition at line 226 of file wavearray.cc.

template<class DataType_t>
wavearray< DataType_t > & wavearray< DataType_t >::operator<< ( wavearray< DataType_t > &  a)
virtual

Definition at line 138 of file wavearray.cc.

template<class DataType_t>
wavearray< DataType_t > & wavearray< DataType_t >::operator= ( const wavearray< DataType_t > &  a)

Definition at line 92 of file wavearray.cc.

template<class DataType_t>
wavearray< DataType_t > & wavearray< DataType_t >::operator= ( const DataType_t  c)

Definition at line 156 of file wavearray.cc.

template<class DataType_t >
char * wavearray< DataType_t >::operator>> ( char *  fname)
virtual

Definition at line 2177 of file wavearray.cc.

template<class DataType_t >
wavearray< DataType_t > & wavearray< DataType_t >::operator[] ( const std::slice s)
virtual

Reimplemented in WSeries< DataType_t >, WSeries< double >, and WSeries< float >.

Definition at line 277 of file wavearray.cc.

template<class DataType_t >
DataType_t & wavearray< DataType_t >::operator[] ( const unsigned int  n)
virtual

Definition at line 290 of file wavearray.cc.

template<class DataType_t >
void wavearray< DataType_t >::print ( )

Definition at line 2203 of file wavearray.cc.

template<class DataType_t>
long wavearray< DataType_t >::rand48 ( long  k = 1024)
inline

Definition at line 269 of file wavearray.hh.

template<class DataType_t >
DataType_t wavearray< DataType_t >::rank ( double  f = 0.5) const

Definition at line 1719 of file wavearray.cc.

template<class DataType_t>
virtual void wavearray< DataType_t >::rate ( double  r)
inlinevirtual

Definition at line 123 of file wavearray.hh.

template<class DataType_t>
virtual double wavearray< DataType_t >::rate ( ) const
inlinevirtual

Definition at line 124 of file wavearray.hh.

template<class DataType_t >
void wavearray< DataType_t >::ReadBinary ( const char *  fname,
int  N = 0 
)
virtual

Definition at line 392 of file wavearray.cc.

template<class DataType_t >
void wavearray< DataType_t >::ReadShort ( const char *  fname)
virtual

Definition at line 422 of file wavearray.cc.

template<class DataType_t>
void wavearray< DataType_t >::Resample ( const wavearray< DataType_t > &  a,
double  f,
int  np = 6 
)

Definition at line 622 of file wavearray.cc.

template<class DataType_t>
void wavearray< DataType_t >::resample ( const wavearray< DataType_t > &  a,
double  f,
int  nF = 6 
)

Definition at line 485 of file wavearray.cc.

template<class DataType_t>
void wavearray< DataType_t >::resample ( double  f,
int  nF = 6 
)
virtual

Reimplemented in WSeries< DataType_t >, WSeries< double >, and WSeries< float >.

Definition at line 546 of file wavearray.cc.

template<class DataType_t>
void wavearray< DataType_t >::Resample ( double  f)
virtual

Definition at line 554 of file wavearray.cc.

template<class DataType_t >
void wavearray< DataType_t >::resetFFTW ( )
virtual

Definition at line 959 of file wavearray.cc.

template<class DataType_t >
void wavearray< DataType_t >::resize ( unsigned int  n)
virtual

Reimplemented in WSeries< DataType_t >, WSeries< double >, and WSeries< float >.

Definition at line 445 of file wavearray.cc.

template<class DataType_t >
double wavearray< DataType_t >::rms ( )
virtual

Definition at line 1188 of file wavearray.cc.

template<class DataType_t >
double wavearray< DataType_t >::rms ( const std::slice s)
virtual

Definition at line 1287 of file wavearray.cc.

template<class DataType_t>
void wavearray< DataType_t >::rms ( double  t,
wavearray< DataType_t > *  in,
bool  fl = false,
size_t  n = 1 
)
virtual

Definition at line 1209 of file wavearray.cc.

template<class DataType_t>
virtual void wavearray< DataType_t >::setSlice ( const std::slice s)
inlinevirtual

Definition at line 128 of file wavearray.hh.

template<class DataType_t>
virtual size_t wavearray< DataType_t >::size ( ) const
inlinevirtual

Definition at line 127 of file wavearray.hh.

template<class DataType_t >
void wavearray< DataType_t >::spesla ( double  T,
double  w,
double  oFFset = 0. 
)
virtual

Definition at line 1752 of file wavearray.cc.

template<class DataType_t>
virtual void wavearray< DataType_t >::SQRT ( )
inlinevirtual

Definition at line 183 of file wavearray.hh.

template<class DataType_t>
double wavearray< DataType_t >::Stack ( const wavearray< DataType_t > &  td,
int  length 
)

Definition at line 973 of file wavearray.cc.

template<class DataType_t>
double wavearray< DataType_t >::Stack ( const wavearray< DataType_t > &  td,
int  length,
int  start 
)

Definition at line 1017 of file wavearray.cc.

template<class DataType_t>
double wavearray< DataType_t >::Stack ( const wavearray< DataType_t > &  td,
double  window 
)

Definition at line 1046 of file wavearray.cc.

template<class DataType_t>
virtual void wavearray< DataType_t >::start ( double  s)
inlinevirtual

Definition at line 119 of file wavearray.hh.

template<class DataType_t>
virtual double wavearray< DataType_t >::start ( ) const
inlinevirtual

Definition at line 120 of file wavearray.hh.

template<class DataType_t>
virtual void wavearray< DataType_t >::stop ( double  s)
inlinevirtual

Definition at line 121 of file wavearray.hh.

template<class DataType_t>
virtual double wavearray< DataType_t >::stop ( ) const
inlinevirtual

Definition at line 122 of file wavearray.hh.

template<class DataType_t>
void wavearray< DataType_t >::sub ( const wavearray< DataType_t > &  a,
int  length = 0,
int  a_pos = 0,
int  pos = 0 
)

Definition at line 754 of file wavearray.cc.

template<class DataType_t>
long wavearray< DataType_t >::uniform ( )
inline

Definition at line 268 of file wavearray.hh.

template<class DataType_t>
size_t wavearray< DataType_t >::wavecount ( double  x,
int  n = 0 
)
inline

Definition at line 286 of file wavearray.hh.

template<class DataType_t>
void wavearray< DataType_t >::waveSort ( DataType_t **  pp,
size_t  l = 0,
size_t  r = 0 
) const
virtual

Definition at line 1403 of file wavearray.cc.

template<class DataType_t>
void wavearray< DataType_t >::waveSort ( size_t  l = 0,
size_t  r = 0 
)
virtual

Definition at line 1462 of file wavearray.cc.

template<class DataType_t>
void wavearray< DataType_t >::waveSplit ( DataType_t **  pp,
size_t  l,
size_t  r,
size_t  m 
) const
virtual

Definition at line 1481 of file wavearray.cc.

template<class DataType_t>
DataType_t wavearray< DataType_t >::waveSplit ( size_t  l,
size_t  r,
size_t  m 
)
virtual

Definition at line 1517 of file wavearray.cc.

template<class DataType_t>
void wavearray< DataType_t >::waveSplit ( size_t  m)
virtual

Definition at line 1538 of file wavearray.cc.

template<class DataType_t >
wavearray< double > wavearray< DataType_t >::white ( double  t,
int  mode = 0,
double  oFFset = 0.,
double  stride = 0. 
) const
virtual

Definition at line 2002 of file wavearray.cc.

Member Data Documentation

template<class DataType_t>
DataType_t* wavearray< DataType_t >::data

Definition at line 301 of file wavearray.hh.

template<class DataType_t>
double wavearray< DataType_t >::Edge

Definition at line 309 of file wavearray.hh.

template<class DataType_t>
TFFTRealComplex* wavearray< DataType_t >::fftw

Definition at line 312 of file wavearray.hh.

template<class DataType_t>
TFFTComplexReal* wavearray< DataType_t >::ifftw

pointer to direct fftw object

Definition at line 313 of file wavearray.hh.

template<class DataType_t>
double wavearray< DataType_t >::Rate

Definition at line 306 of file wavearray.hh.

template<class DataType_t>
size_t wavearray< DataType_t >::Size

data array

Definition at line 305 of file wavearray.hh.

template<class DataType_t>
std::slice wavearray< DataType_t >::Slice

Definition at line 310 of file wavearray.hh.

template<class DataType_t>
double wavearray< DataType_t >::Start

Definition at line 307 of file wavearray.hh.

template<class DataType_t>
double wavearray< DataType_t >::Stop

Definition at line 308 of file wavearray.hh.


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