Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals

VectorRoutines.h File Reference

Go to the source code of this file.

Functions

Double_t Var (TDSPVector *s1, TDSPVector *weights=NULL)
Double_t Var (TDSPVector &s1)
Double_t Std (TDSPVector *s1)
Double_t Std (TDSPVector &s1)
Double_t Dist (TDSPVector *s1, TDSPVector *s2)
Double_t Dist2 (TDSPVector *s1, TDSPVector *s2)
TComplex Dot (TDSPVector *s1, TDSPVector *s2, Bool_t conj=kTRUE)
Double_t Dot2 (TDSPVector *s1, TDSPVector *s2)
Double_t Dist (TDSPVector &s1, TDSPVector &s2)
Double_t Dist2 (TDSPVector &s1, TDSPVector &s2)
TComplex Dot (TDSPVector &s1, TDSPVector &s2, Bool_t conj=kTRUE)
Double_t Dot2 (TDSPVector &s1, TDSPVector &s2)
TDSPVectorIndex (TComplex x, TComplex y=0, TComplex step=1, TDSPVector *result=NULL)
TDSPVectorConv (TDSPVector *in, TDSPVector *h, TDSPVector *out=NULL, Int_t opt=kTDSPVector_Conv_Defaults, Int_t bl=0)
TDSPVectorRect (Int_t L, Int_t N, Double_t norm=1, TDSPVector *in=NULL)
TDSPVectorRect_FFTShift (Int_t L, Int_t N, Double_t norm=1, TDSPVector *in=NULL)
 Rectangular pulse.

TDSPVectorGaussnk (Int_t L, Double_t norm=1, TDSPVector *in=NULL)
 Rectangular pulse + fftshift.

TDSPVectorGaussnk_FFTShift (Int_t L, Double_t norm=1, TDSPVector *in=NULL)
 Gaussnk - Fourier invariant Gaussian.

TDSPVectorRcos (Int_t L, Int_t N, Double_t rolloff, Double_t norm=1., TDSPVector *output=NULL)
 Raised Cosine.

TDSPVectorRcos_FFTShift (Int_t L, Int_t N, Double_t rolloff, Double_t norm=1., TDSPVector *output=NULL)
 Raised Cosine + fftshift.

TDSPVectorRandNC (UInt_t L, Double_t sigma=1.)
TDSPVectorDelta (UInt_t L, Int_t one_pos=0.)
 Vector of length L with "1" at one_pos and the rest is zero.


Function Documentation

TDSPVector* Conv TDSPVector in,
TDSPVector h,
TDSPVector out = NULL,
Int_t  opt = kTDSPVector_Conv_Defaults,
Int_t  bl = 0
[inline]
 

Definition at line 69 of file VectorRoutines.h.

References TDSPVector::Conv().

00070                                                              {
00071   return h->Conv(in,out,opt,bl);
00072 }

TDSPVector* Delta UInt_t  L,
Int_t  one_pos = 0.
 

Vector of length L with "1" at one_pos and the rest is zero.

Double_t Dist TDSPVector s1,
TDSPVector s2
[inline]
 

Definition at line 54 of file VectorRoutines.h.

References TDSPVector::Dist().

00054                                                      {
00055   return s1.Dist(s2);
00056 }

Double_t Dist TDSPVector s1,
TDSPVector s2
[inline]
 

Definition at line 41 of file VectorRoutines.h.

References TDSPVector::Dist().

00041                                                      {
00042   return s1->Dist(s2);
00043 }

Double_t Dist2 TDSPVector s1,
TDSPVector s2
[inline]
 

Definition at line 57 of file VectorRoutines.h.

References TDSPVector::Dist2().

00057                                                       {
00058   return s1.Dist2(s2);
00059 }

Double_t Dist2 TDSPVector s1,
TDSPVector s2
[inline]
 

Definition at line 44 of file VectorRoutines.h.

References TDSPVector::Dist2().

00044                                                       {
00045   return s1->Dist2(s2);
00046 }

TComplex Dot TDSPVector s1,
TDSPVector s2,
Bool_t  conj = kTRUE
[inline]
 

Definition at line 60 of file VectorRoutines.h.

References TDSPVector::Dot().

00060                                                                        {
00061   return s1.Dot(s2,conj);
00062 }

TComplex Dot TDSPVector s1,
TDSPVector s2,
Bool_t  conj = kTRUE
[inline]
 

Definition at line 47 of file VectorRoutines.h.

References TDSPVector::Dot().

00047                                                                        {
00048   return s1->Dot(s2,conj);
00049 }

Double_t Dot2 TDSPVector s1,
TDSPVector s2
[inline]
 

Definition at line 63 of file VectorRoutines.h.

References TDSPVector::Dot2().

00063                                                      {
00064   return s1.Dot2(s2);
00065 }

Double_t Dot2 TDSPVector s1,
TDSPVector s2
[inline]
 

Definition at line 50 of file VectorRoutines.h.

References TDSPVector::Dot2().

00050                                                      {
00051   return s1->Dot2(s2);
00052 }

TDSPVector* Gaussnk Int_t  L,
Double_t  norm = 1,
TDSPVector in = NULL
 

Rectangular pulse + fftshift.

TDSPVector* Gaussnk_FFTShift Int_t  L,
Double_t  norm = 1,
TDSPVector in = NULL
 

Gaussnk - Fourier invariant Gaussian.

TDSPVector* Index TComplex  x,
TComplex  y = 0,
TComplex  step = 1,
TDSPVector result = NULL
 

TDSPVector* RandNC UInt_t  L,
Double_t  sigma = 1.
 

TDSPVector* Rcos Int_t  L,
Int_t  N,
Double_t  rolloff,
Double_t  norm = 1.,
TDSPVector output = NULL
 

Raised Cosine.

TDSPVector* Rcos_FFTShift Int_t  L,
Int_t  N,
Double_t  rolloff,
Double_t  norm = 1.,
TDSPVector output = NULL
 

Raised Cosine + fftshift.

TDSPVector* Rect Int_t  L,
Int_t  N,
Double_t  norm = 1,
TDSPVector in = NULL
 

TDSPVector* Rect_FFTShift Int_t  L,
Int_t  N,
Double_t  norm = 1,
TDSPVector in = NULL
 

Rectangular pulse.

Double_t Std TDSPVector s1  )  [inline]
 

Parameters:
s1  Calculate the Standard Deviation of s1 (normalized N-1)

Definition at line 36 of file VectorRoutines.h.

00037 {
00038   return Std(&s1);
00039 }

Double_t Std TDSPVector s1  )  [inline]
 

Parameters:
s1  Calculate the Standard Deviation of s1 (normalized N-1)

Definition at line 31 of file VectorRoutines.h.

References TDSPVector::GetLen(), Sqrt(), and TDSPVector::Variance().

00032 {
00033   return TMath::Sqrt(s1->Variance()/(s1->GetLen()-1.));
00034 }

Double_t Var TDSPVector s1  )  [inline]
 

Parameters:
s1  Calculate the Variance of s1

Definition at line 26 of file VectorRoutines.h.

References TDSPVector::Variance().

00027 {
00028   return s1.Variance();
00029 }

Double_t Var TDSPVector s1,
TDSPVector weights = NULL
[inline]
 

TDSP ******************************************************************* VectorRoutines.h - description ------------------- begin : Mon Feb 18 2002 copyright : (C) 2002 by Peter Jung email : jung@hhi.de

Parameters:
weights  Calculate the Variance of s1 weighted by weights

Definition at line 21 of file VectorRoutines.h.

References TDSPVector::Variance().

00022 {
00023   return s1->Variance(weights);
00024 }


Generated on Fri Apr 23 16:23:45 2004 by doxygen 1.3.2