#include <TDSPVector.h>
Inheritance diagram for TDSPVector:

Public Member Functions | |
| Int_t | Lo () const |
| Int_t | Hi () const |
| void | Swap (Int_t, Int_t) |
| Swap two elements. | |
| TComplex & | Element (Int_t i) |
| TComplex * | GetVec () |
| TComplex * | MoveVec (Int_t n) |
| Int_t | GetLen () const |
| Double_t | GetTime () |
| void | Free () |
| Free all resources used by this vector. | |
| Int_t | GetZero () |
| void | SetZero (Int_t z) |
| void | SetVec (TComplex *s, Int_t num=-1) |
| Set the pointer to extern data. | |
| void | ResetSignal () |
| virtual void | SetLen (Int_t num, Bool_t savedata=kFALSE) |
| Set the size. | |
| void | SetMinLen (Int_t num) |
| Set the minimum size to alloc. | |
| void | Set (const TComplex &) |
| Set all values to c. | |
| void | Set (Double_t) |
| Set all values to c. | |
| void | Set (Int_t i, TDSPVector *, Int_t p=0, Int_t len=-1) |
| Set the values starting from i from vector at p..p+len-1. | |
| void | SetReal (Double_t) |
| Set all real parts to c. | |
| void | SetImag (Double_t) |
| Set all imag parts to c. | |
| void | Zeros () |
| void | Ones () |
| void | Delta (Int_t pos=0) |
| void | Step (TComplex &start, TComplex &step) |
| Init with start,start+step,start+2*step etc. | |
| void | Step (TComplex &start) |
| Init with start,start+1,start+2 etc. | |
| void | Step (Double_t start, Double_t step=1.0) |
| Init with start,start+step,start+2*step etc. | |
| void | Step () |
| Init with 0,1,2,3 ... | |
| void | ConjugateMe () |
| Conjugate all elements. | |
| void | AdjointMe () |
| Adjoint the vector. | |
| TDSPVector * | Adjoint (TDSPVector *out=NULL) |
| Adjoint the vector. | |
| void | Append (TDSPVector *) |
| Append a vector to this vector. | |
| Double_t | Dist (TDSPVector *) |
| Calculate the Distance. | |
| Double_t | Dist (TDSPVector &) |
| Calculate the Distance. | |
| Double_t | Dist2 (TDSPVector *) |
| Calculate the Distance^2. | |
| Double_t | Dist2 (TDSPVector &) |
| Calculate the Distance^2. | |
| TComplex | Dot (TDSPVector *, Bool_t conj=kTRUE) |
| Calculate the Dot-Product - conjugate (this) before ? | |
| TComplex | Dot (TDSPVector &, Bool_t conj=kTRUE) |
| Calculate the Dot-Product - conjugate (this) before ? | |
| Double_t | Dot2 (TDSPVector *) |
| Calculate the Dot-Product^2. | |
| Double_t | Dot2 (TDSPVector &) |
| Calculate the Dot-Product^2. | |
| void | RandN (Double_t mean=0, Double_t sigma=1) |
| real parts normal dist. with (mean,sigma=1) and imag=0 | |
| void | RandNreal (Double_t mean=0, Double_t sigma=1) |
| real parts normal dist. with (mean,sigma=1) | |
| void | RandNimag (Double_t mean=0, Double_t sigma=1) |
| imag parts normal dist. with (mean,sigma=1) | |
| void | RandNC (Double_t sigma=1) |
| real/imag cnormal dist. with (sigma=1) and mean=0 | |
| void | RandNC (TComplex &, Double_t sigma=1) |
| real/imag cnormal dist. with (mean,sigma=1) | |
| void | RandNC (TComplex *, Double_t sigma=1) |
| real/imag cnormal dist. with individ. (means,sigma=1) | |
| void | RandNC (TComplex *, TComplex *sigmas) |
| real/imag cnormal dist. with individ. (means,sigmas) | |
| void | RandNC (TDSPVector *, Double_t sigma=1) |
| real/imag cnormal dist. with individ. (means,sigma=1) | |
| void | RandNC (TDSPVector &, Double_t sigma=1) |
| real/imag cnormal dist. with individ. (means,sigma=1) | |
| void | RandNC (TDSPVector *, TDSPVector *sigmas) |
| real/imag cnormal dist. with individ. (means,sigmas) | |
| void | RandPhase () |
| init as random phasors (uniform phase ...) | |
| void | MultRandPhase (TDSPVector *in=NULL) |
| init with random phase multiplied on an input vector(if NULL use this). | |
| void | RandNPhase (Double_t variance=1, Double_t rate=1) |
| init with random normal phases at a special rate | |
| void | MultRandNPhase (Double_t variance=1, Double_t rate=1) |
| multiply with random phase | |
| void | MultRandNPhase (Double_t variance, Double_t rate, TDSPVector *) |
| init with random phase multiplied on an input vector. | |
| void | Reverse () |
| Reverse the order. | |
| void | RandRayleigh (Double_t sigma=1, Double_t phase=0) |
| init with real rayleigh | |
| void | ModulateMe (TComplex, Double_t burstlen=0, Double_t burstoff=0, Double_t phase=0) |
| Modulate the vector (multiply with a frequency). | |
| TDSPVector * | Modulate (TComplex, Double_t burstlen=0, Double_t burstoff=0, Double_t phase=0, TDSPVector *=NULL) |
| Modulate the vector (reset phase after each burstlen steps). | |
| TDSPVector * | DownSampling (UInt_t M, TDSPVector *pulse=NULL, TDSPVector *output=NULL) |
| M-fold decimation filter with response "pulse". | |
| TDSPVector * | UpSampling (UInt_t K, TDSPVector *pulse=NULL, TDSPVector *output=NULL, UInt_t iStep=1, UInt_t iOff=0) |
| K-fold interpolation filter with response "pulse". | |
| TDSPVector * | Alias (TDSPVector *a=NULL, Int_t NewLen=0) |
| Creates an Alias to this vector of Length NewLen. | |
| TComplex | Sum (TDSPVector *weights=NULL) |
| The Sum. | |
| Double_t | Sum2 (TDSPVector *weights=NULL) |
| The Sum of squares abs. | |
| TComplex | Prod () |
| the product of all components | |
| Double_t | ProdReal () |
| the product of all components real part | |
| Double_t | ProdImag () |
| the product of all components imag part | |
| Double_t | Norm (TDSPVector *weights=NULL, Int_t p=2) |
| Calculate the weighted p-Norm (default=2-norm). | |
| Double_t | Norm2 (TDSPVector *weights=NULL) |
| Double_t | Energy () |
| Double_t | Power () |
| TComplex | Mean (TDSPVector *weights=NULL) |
| Calculate the Mean. | |
| Double_t | Mean2 (TDSPVector *weights=NULL) |
| Calculate the Mean2. | |
| Double_t | Variance (TDSPVector *weights=NULL) |
| Calculate the Variance. | |
| Double_t | Moment1 (TDSPVector *x=NULL) |
| 1.Moment = 1/norm2(x)*sum_i Abs2(this(i))*Abs(x(i)) (x=NULL-->x=i) | |
| Double_t | Moment2 (TDSPVector *x=NULL) |
| 2.Moment = 1/norm2(x)*sum_i Abs2(this(i))*Abs2(x(i)) (x=NULL-->x=i) | |
| Double_t | CMoment2 (TDSPVector *x=NULL) |
| 2.CentralMoment = 1/norm2(x)*sum_i Abs2(this(i))*(Abs2(x(i))-xmean) (x=NULL-->x=i) | |
| Double_t | Max () |
| Double_t | Min () |
| Double_t | MaxReal () |
| Return the maximum real part. | |
| Double_t | MinReal () |
| Return the minimum real part. | |
| Double_t | MaxImag () |
| Return the maximum imag part. | |
| Double_t | MinImag () |
| Return the minimum imag part. | |
| Double_t | MaxAbs2 () |
| Return the maximum squared abs. | |
| Double_t | MinAbs2 () |
| Return the minimum squared abs. | |
| Double_t | MaxAbs () |
| Double_t | MinAbs () |
| TDSPVector * | GetPhase (TDSPVector *resul=NULL) |
| return the phases of the vector in a new vector | |
| void | Phase () |
| set the vector to its phases | |
| void | Sqr () |
| Square the vector-abs : c^* * c. | |
| void | Abs2 () |
| void | Abs () |
| Absolute value per index of the vector c^t*c. | |
| void | Sqrt () |
| Square Root of the Vector. | |
| void | SqrtReal () |
| Square Root only on the real part of the Vector. | |
| void | SqrtImag () |
| Square Root only on the imaginary part of the Vector. | |
| void | Exp () |
| Exp of the Vector. | |
| void | Cos () |
| Cosine of the Vector. | |
| void | Sin () |
| Sine of the Vector. | |
| void | Log () |
| nat. Log of the vector | |
| void | Log10 () |
| 10-Log of the vector | |
| void | Log2 () |
| 2-Log of the vector | |
| void | Normalize (Double_t norm=1.0) |
| Normalize. | |
| TDSPVector * | Dup () |
| TDSPVector * | Copy (TDSPVector *n) |
| Copy the Vector to n (=NULL - create a new vector ). | |
| void | Apply (TComplex(*fcn)(TComplex &)) |
| Apply a Function on the signal vector. | |
| void | SetSamplingRate (Double_t s) |
| Double_t | GetSamplingRate () |
| void | SamplingRate (Double_t s) |
| void | Configure (TDSPVector *) |
| Configure the signal on the base on an other signal. | |
| void | SetXTitle (char *name) |
| Set the name of the xtitle. | |
| void | SetYTitle (char *name) |
| Set the name of the ytitle. | |
| Int_t | OnCodeInc (TDSPVector *Alphabet) |
| Increments this(seen a sequence of complex number) to the next codeword. | |
| Int_t | OnCodeInc (TComplex *Alphabet, Int_t NumAlphabet) |
| Increments this (seen a sequence of complex number) to the next codeword. | |
| Int_t | OnCodeSet (Int_t value, TDSPVector *al) |
| Codes the value in the Vector based on the alphabet "al". | |
| Int_t | OnCodeSet (Int_t value, TComplex *al, Int_t num_al) |
| Codes the value in the Vector based on the alphabet "al". | |
| Int_t | OnCodeGet (Int_t *value, TDSPVector *al) |
| Decodes the vector based on the alphabet "al" to *value. | |
| Int_t | OnCodeGet (Int_t *value, TComplex *al, Int_t num_al) |
| Decodes the Vector based on the alphabet "al" to *value. | |
| TDSPVector * | DivBy (TDSPVector *a, TDSPVector *result=NULL) |
| Some Pointwise operations. | |
| TDSPVector * | MultBy (TDSPVector *a, TDSPVector *result=NULL) |
| TDSPVector * | AddBy (TDSPVector *a, TDSPVector *result=NULL) |
| TDSPVector * | SubBy (TDSPVector *a, TDSPVector *result=NULL) |
| TDSPVector * | DivBy (TComplex a, TDSPVector *result=NULL) |
| Some Scalar operations. | |
| TDSPVector * | MultBy (TComplex a, TDSPVector *result=NULL) |
| TDSPVector * | AddBy (TComplex a, TDSPVector *result=NULL) |
| TDSPVector * | SubBy (TComplex a, TDSPVector *result=NULL) |
| TDSPVector * | Conv (TDSPVector *input, TDSPVector *output=NULL, Int_t opt=kTDSPVector_Conv_Defaults, Int_t b=0) |
| Convolution. | |
| void | DumpParams (ostream *os=NULL) |
| void | FFTShiftMe () |
| Rearrange after fft / before ifft (moving the zero-freq to the center). | |
| void | IFFTShiftMe () |
| Rearrange after ifft / before fft (moving the zero-freq to the center). | |
| TDSPVector * | XCorr (Int_t max_lags=0, eXCorr_Options o=kXCorrNone) |
| TDSPVector * | XCorr (TDSPVector *i2, Int_t max_lags=0, eXCorr_Options o=kXCorrNone) |
| TDSPVector * | XCorr (TDSPVector *i2, TDSPVector *result, Int_t max_lags=0, eXCorr_Options o=kXCorrNone) |
| TGraph * | Graph (Option_t *="complex", TGraph *in=NULL, Double_t dx=1.0, Double_t xoff=0.0) |
| virtual void | Draw (Option_t *="ac", Double_t dx=1.0, Double_t xoff=0.0) |
| TH1 * | FillAbs (TH1 *h=NULL) |
| TH1 * | FillAbs2 (TH1 *h=NULL) |
| TH1 * | FillPhase (TH1 *h=NULL) |
| TH1 * | FillReal (TH1 *h=NULL) |
| TH1 * | FillImag (TH1 *h=NULL) |
| TH2 * | Fill (TH2 *h=NULL) |
| virtual void | Print (Option_t *option="") |
| void | Input () |
| TDSPVector & | operator= (TmxArray &m) |
| some operators | |
| TDSPVector & | operator= (const Double_t x) |
| TDSPVector & | operator= (TDSPVector &x) |
| TDSPVector & | operator= (const TComplex &c) |
| TDSPVector & | operator &= (const Double_t &) |
| TDSPVector & | operator/= (const TComplex &d) |
| Add a value into the Vector and move the cursor. | |
| TDSPVector & | operator/= (const Double_t &d) |
| TDSPVector & | operator/= (const Int_t &d) |
| TDSPVector & | operator *= (const TComplex &d) |
| TDSPVector & | operator *= (const Double_t &d) |
| TDSPVector & | operator *= (const Int_t &d) |
| TDSPVector & | operator+= (const TComplex &d) |
| TDSPVector & | operator+= (const Double_t &d) |
| TDSPVector & | operator+= (const Int_t &d) |
| TDSPVector & | operator-= (const TComplex &d) |
| TDSPVector & | operator-= (const Double_t &d) |
| TDSPVector & | operator-= (const Int_t &d) |
| TDSPVector & | operator+= (const TDSPVector &s) |
| TDSPVector & | operator-= (const TDSPVector &s) |
| TDSPVector & | operator *= (const TDSPVector &s) |
| TComplex & | operator() (Int_t index) |
| TComplex & | operator[] (Int_t index) |
| void | Save (TFile *f, char *key) |
| Save a Vector into a file/key. | |
| void | Save (char *fname, char *key, char *opt="RECREATE") |
| Save a Vector into a file/key. | |
| TDSPVector (Int_t len=0) | |
| virtual | ~TDSPVector () |
Static Public Member Functions | |
| Bool_t | LoadATLAS (char *name=NULL) |
| loads the atlas library | |
| void | EnableATLAS () |
| disable the use of the atlas library | |
| void | DisableATLAS () |
| Bool_t | UsingATLAS () |
| TDSPVector * | Load (TFile *f, char *key) |
| Load a Vector from a file/key. | |
| TDSPVector * | Load (char *fname, char *key) |
| Load a Vector from a file/key. | |
| void | ValuesPerLine (UInt_t p) |
Protected Attributes | |
| char * | fXTitle |
| A name for the vector index. | |
| char * | fYTitle |
| A name for the vector content. | |
| TComplex * | fVec |
| Int_t | Num |
| Len of signal vectorm. | |
| Int_t | fPos |
| mom. position for pointwise filling etc. | |
| TComplex * | fAllocedVec |
| Int_t | fAllocedNum |
| Double_t | fSamplingRate |
| The Sampling Rate. | |
| Int_t | fZero |
| for absolut positioning (=pos of the zero) | |
Static Protected Attributes | |
| UInt_t | fStrict |
| Strictmode 0=none,1=warning,2=strict. | |
| Bool_t | fATLAS |
Friends | |
| Bool_t | operator== (TDSPVector &, TDSPVector &) |
| How many Values to Print per line (using cout...). | |
| istream & | operator>> (istream &, TDSPVector &) |
| ostream & | operator<< (ostream &, TDSPVector &) |
| istream & | operator>> (istream &, TDSPVector *) |
| ostream & | operator<< (ostream &, TDSPVector *) |
| Double_t | filternorm (TDSPVector *fir, TDSPVector *iir=NULL, UInt_t p=2) |
| TDSPVector * | filter (TDSPVector *in, TDSPVector *out, TDSPVector *fir, TDSPVector *iir=NULL) |
| void | mult (TDSPVector *a, TDSPVector *b, TDSPVector *c) |
| void | econv (TDSPVector *a, TDSPVector *b, TDSPVector *c, Int_t offset=0, Int_t step=1, Int_t opt=kTDSPVector_Conv_Defaults) |
|
|
Referenced by Adjoint(), Alias(), Copy(), and TDSPMatrix::GetDiag(). |
|
|
|
|
|
Absolute value per index of the vector c^t*c.
Definition at line 575 of file TDSPVector.h.
|
|
|
Definition at line 212 of file TDSPVector.h. References Sqr().
00212 { Sqr();};
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
Adjoint the vector.
Definition at line 483 of file TDSPVector.h. References Configure(), TComplex::fIm, TComplex::fRe, fVec, Num, SetLen(), and TDSPVector().
|
|
|
Adjoint the vector.
Definition at line 479 of file TDSPVector.h. References TComplex::fIm, fVec, and Num.
|
|
||||||||||||
|
Creates an Alias to this vector of Length NewLen.
Definition at line 744 of file TDSPVector.h. References Configure(), Free(), fVec, Num, SetVec(), and TDSPVector().
00744 {
00745 if (!a) a = new TDSPVector();
00746 a->Free();
00747 a->Configure(this);
00748 if (!NewNum) NewNum=Num;
00749 a->SetVec(fVec,NewNum);
00750 return a;
00751 }
|
|
|
Append a vector to this vector.
|
|
|
Apply a Function on the signal vector.
Definition at line 721 of file TDSPVector.h.
|
|
|
2.CentralMoment = 1/norm2(x)*sum_i Abs2(this(i))*(Abs2(x(i))-xmean) (x=NULL-->x=i)
|
|
|
Configure the signal on the base on an other signal.
Definition at line 753 of file TDSPVector.h. References GetSamplingRate(), and SetSamplingRate(). Referenced by Adjoint(), Alias(), TDSPFunction::Apply(), Copy(), and TDSPModulation::Modulate().
00753 {
00754 SetSamplingRate(s->GetSamplingRate());
00755 }
|
|
|
Conjugate all elements.
|
|
||||||||||||||||||||
|
Convolution.
Referenced by Conv(). |
|
|
Copy the Vector to n (=NULL - create a new vector ).
Definition at line 728 of file TDSPVector.h. References Configure(), fVec, GetVec(), Num, SetLen(), and TDSPVector(). Referenced by Dup(), and operator=().
|
|
|
Cosine of the Vector.
Definition at line 601 of file TDSPVector.h.
|
|
|
Definition at line 128 of file TDSPVector.h. References Zeros().
00128 { Zeros(); (*this)(pos)=1; };
|
|
|
Definition at line 103 of file TDSPVector.h. References fATLAS.
00103 { fATLAS=kFALSE;};
|
|
|
Calculate the Distance.
Definition at line 646 of file TDSPVector.h. References Dist().
00646 {
00647 return Dist(&s);
00648 }
|
|
|
Calculate the Distance.
Definition at line 643 of file TDSPVector.h. References Dist2(), and Sqrt(). Referenced by Dist(), and Dist().
00643 {
00644 return TMath::Sqrt(Dist2(s));
00645 }
|
|
|
Calculate the Distance^2.
Definition at line 640 of file TDSPVector.h. References Dist2().
00640 {
00641 return Dist2(&s);
00642 }
|
|
|
Calculate the Distance^2.
|
|
||||||||||||
|
Some Scalar operations.
|
|
||||||||||||
|
Some Pointwise operations.
|
|
||||||||||||
|
Calculate the Dot-Product - conjugate (this) before ?
Definition at line 666 of file TDSPVector.h. References Dot().
00666 {
00667 return Dot(&s,conj);
00668 }
|
|
||||||||||||
|
Calculate the Dot-Product - conjugate (this) before ?
Definition at line 653 of file TDSPVector.h. References fVec, GetSamplingRate(), and Num. Referenced by Dot(), and Dot().
00653 {
00654 if (s->GetSamplingRate()!=GetSamplingRate())
00655 Warning("Dot","Sampling rates differ (%f != %f) !",GetSamplingRate(),s->GetSamplingRate());
00656
00657 TComplex dot=0;
00658 if (conj)
00659 for(register Int_t i=0;i<Num;++i)
00660 dot += fVec[i] % s->fVec[i];
00661 else
00662 for(register Int_t i=0;i<Num;++i)
00663 dot += fVec[i] * s->fVec[i];
00664 return dot;
00665 }
|
|
|
Calculate the Dot-Product^2.
Definition at line 650 of file TDSPVector.h. References Dot2().
00650 {
00651 return Dot2(&s);
00652 }
|
|
|
Calculate the Dot-Product^2.
Definition at line 630 of file TDSPVector.h. References TComplex::fIm, TComplex::fRe, fVec, GetSamplingRate(), and Num. Referenced by Dot2(), and Dot2().
00630 {
00631 Double_t dot2=0;
00632 if (s->GetSamplingRate()!=GetSamplingRate())
00633 Warning("Dot2","Sampling rates differ (%f != %f) !",GetSamplingRate(),s->GetSamplingRate());
00634 for(register Int_t i=0;i<Num;++i) {
00635 dot2 += fVec[i].fRe*s->fVec[i].fRe + fVec[i].fIm*s->fVec[i].fIm;
00636 }
00637
00638 return dot2;
00639 }
|
|
||||||||||||||||
|
M-fold decimation filter with response "pulse".
|
|
||||||||||||||||
|
|
|
|
|
|
|
Reimplemented in TDSPMatrix. Definition at line 224 of file TDSPVector.h. References Copy().
00224 { return Copy(NULL);};
|
|
|
Definition at line 109 of file TDSPVector.h. References fVec. Referenced by TDSPMatrix::GetDiag().
00109 { return fVec[i];};
|
|
|
disable the use of the atlas library
Definition at line 102 of file TDSPVector.h. References fATLAS. |
|
|
Definition at line 186 of file TDSPVector.h. References fSamplingRate, and Norm2().
00186 { return Norm2()/fSamplingRate;};
|
|
|
Exp of the Vector.
Definition at line 585 of file TDSPVector.h.
|
|
|
Rearrange after fft / before ifft (moving the zero-freq to the center).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Free all resources used by this vector.
Referenced by Alias(). |
|
|
Definition at line 112 of file TDSPVector.h. References Num. Referenced by TDSPFunction::Apply(), operator==(), TDSPSolver::SetXAlphabet(), TDSPBlockFifo::Shift(), Std(), and TDSPOutput1::Update().
00112 { return Num; };
|
|
|
return the phases of the vector in a new vector
|
|
|
Definition at line 228 of file TDSPVector.h. References fSamplingRate. Referenced by TDSPFunction::Apply(), Configure(), Dot(), Dot2(), and operator==().
00228 { return fSamplingRate; };
|
|
|
Definition at line 113 of file TDSPVector.h. References fSamplingRate, and Num.
00113 { return Num/fSamplingRate;};
|
|
|
Definition at line 110 of file TDSPVector.h. References fVec. Referenced by TDSPFunction::Apply(), Copy(), TDSPMatrix::Copy(), operator==(), TDSPSolver::SetXAlphabet(), TDSPBlockFifo::Shift(), and TDSPOutput1::Update().
00110 { return fVec; };
|
|
|
Definition at line 115 of file TDSPVector.h. References fZero.
00115 { return fZero; };
|
|
||||||||||||||||||||
|
|
|
|
Definition at line 107 of file TDSPVector.h. References Num.
00107 { return Num-1;};
|
|
|
Rearrange after ifft / before fft (moving the zero-freq to the center).
|
|
|
Reimplemented in TDSPMatrix. |
|
|
Definition at line 106 of file TDSPVector.h.
00106 { return 0;};
|
|
||||||||||||
|
Load a Vector from a file/key.
|
|
||||||||||||
|
Load a Vector from a file/key.
|
|
|
loads the atlas library
|
|
|
nat. Log of the vector
Definition at line 589 of file TDSPVector.h.
|
|
|
10-Log of the vector
Definition at line 593 of file TDSPVector.h.
|
|
|
2-Log of the vector
Definition at line 597 of file TDSPVector.h.
|
|
|
Definition at line 195 of file TDSPVector.h. References MaxReal().
00195 { return MaxReal();};
|
|
|
Definition at line 206 of file TDSPVector.h. References MaxAbs2(), and Sqrt().
00206 { return TMath::Sqrt(MaxAbs2());};
|
|
|
Return the maximum squared abs.
Definition at line 784 of file TDSPVector.h. References TComplex::fIm, TComplex::fRe, fVec, and Num. Referenced by MaxAbs().
|
|
|
Return the maximum imag part.
Definition at line 771 of file TDSPVector.h. References TComplex::fIm, fVec, and Num.
|
|
|
Return the maximum real part.
Definition at line 758 of file TDSPVector.h. References TComplex::fRe, fVec, and Num. Referenced by Max().
|
|
|
Calculate the Mean.
Definition at line 806 of file TDSPVector.h. References Norm2(), Num, and Sum().
|
|
|
Calculate the Mean2.
Definition at line 810 of file TDSPVector.h. References Norm2(), Num, and Sum2().
|
|
|
Definition at line 196 of file TDSPVector.h. References MinReal().
00196 { return MinReal();};
|
|
|
Definition at line 207 of file TDSPVector.h. References MinAbs2(), and Sqrt().
00207 { return TMath::Sqrt(MinAbs2());};
|
|
|
Return the minimum squared abs.
Definition at line 792 of file TDSPVector.h. References TComplex::fIm, TComplex::fRe, fVec, and Num. Referenced by MinAbs().
|
|
|
Return the minimum imag part.
Definition at line 778 of file TDSPVector.h. References TComplex::fIm, fVec, and Num.
|
|
|
Return the minimum real part.
Definition at line 765 of file TDSPVector.h. References TComplex::fRe, fVec, and Num. Referenced by Min().
|
|
||||||||||||||||||||||||
|
Modulate the vector (reset phase after each burstlen steps).
Referenced by TDSPModulation::Modulate(). |
|
||||||||||||||||||||
|
Modulate the vector (multiply with a frequency).
|
|
|
1.Moment = 1/norm2(x)*sum_i Abs2(this(i))*Abs(x(i)) (x=NULL-->x=i)
|
|
|
2.Moment = 1/norm2(x)*sum_i Abs2(this(i))*Abs2(x(i)) (x=NULL-->x=i)
|
|
|
Definition at line 111 of file TDSPVector.h. References fVec.
00111 { return fVec+=n;};
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
init with random phase multiplied on an input vector.
|
|
||||||||||||
|
multiply with random phase
|
|
|
init with random phase multiplied on an input vector(if NULL use this).
|
|
||||||||||||
|
Calculate the weighted p-Norm (default=2-norm).
Referenced by Normalize(). |
|
|
Definition at line 184 of file TDSPVector.h. References Sum2(). Referenced by Energy(), Mean(), Mean2(), and Power().
00184 { return Sum2(weights);};
|
|
|
Normalize.
Definition at line 624 of file TDSPVector.h. References Norm().
00624 {
00625 Double_t f = norm/Norm();
00626 (*this)*=f;
00627 }
|
|
||||||||||||||||
|
Decodes the Vector based on the alphabet "al" to *value.
|
|
||||||||||||
|
Decodes the vector based on the alphabet "al" to *value.
|
|
||||||||||||
|
Increments this (seen a sequence of complex number) to the next codeword.
|
|
|
Increments this(seen a sequence of complex number) to the next codeword.
|
|
||||||||||||||||
|
Codes the value in the Vector based on the alphabet "al".
|
|
||||||||||||
|
Codes the value in the Vector based on the alphabet "al".
|
|
|
Definition at line 127 of file TDSPVector.h. References Set().
00127 { Set(1.0);};
|
|
|
Definition at line 372 of file TDSPVector.h.
|
|
|
|
|
|
Definition at line 401 of file TDSPVector.h.
|
|
|
Definition at line 395 of file TDSPVector.h.
|
|
|
Definition at line 408 of file TDSPVector.h.
|
|
|
Definition at line 670 of file TDSPVector.h. References ComplexZero, fVec, and Num.
00670 {
00671 if (fVec) {
00672 if ((index<Num)&&(index>=0))
00673 return fVec[index];
00674 else
00675 Error("operator()","index %d out of bounds (%d..%d)",index,0,Num-1);
00676 } else
00677 Error("operator()","vector not allocated (this->fVec=0x0)!");
00678 return ComplexZero;
00679 }
|
|
|
|
|
|
Definition at line 421 of file TDSPVector.h.
|
|
|
Definition at line 415 of file TDSPVector.h.
|
|
|
Definition at line 428 of file TDSPVector.h.
|
|
|
|
|
|
Definition at line 441 of file TDSPVector.h.
|
|
|
Definition at line 435 of file TDSPVector.h.
|
|
|
Definition at line 448 of file TDSPVector.h.
|
|
|
Definition at line 383 of file TDSPVector.h.
|
|
|
Definition at line 377 of file TDSPVector.h.
|
|
|
Add a value into the Vector and move the cursor.
Definition at line 390 of file TDSPVector.h.
|
|
|
Definition at line 307 of file TDSPVector.h. References Set().
00307 { Set(c); return *this;};
|
|
|
Definition at line 306 of file TDSPVector.h. References Copy().
00306 { x.Copy(this);return *this;};
|
|
|
Definition at line 305 of file TDSPVector.h. References Set().
00305 { Set(x); return *this;};
|
|
|
some operators
|
|
|
Definition at line 681 of file TDSPVector.h. References fVec.
00681 {
00682 return fVec[index];
00683 }
|
|
|
set the vector to its phases
Definition at line 605 of file TDSPVector.h. References fVec, Num, and TComplex::Phase.
|
|
|
Definition at line 187 of file TDSPVector.h.
|
|
|
Reimplemented in TDSPSignal. |
|
|
the product of all components
|
|
|
the product of all components imag part
|
|
|
the product of all components real part
|
|
||||||||||||
|
real parts normal dist. with (mean,sigma=1) and imag=0
Definition at line 515 of file TDSPVector.h. References TComplex::fIm, TComplex::fRe, fVec, and Num.
|
|
||||||||||||
|
real/imag cnormal dist. with individ. (means,sigmas)
|
|
||||||||||||
|
real/imag cnormal dist. with individ. (means,sigma=1)
Definition at line 523 of file TDSPVector.h. References RandNC().
00523 {
00524 RandNC(&means, sigma);
00525 }
|
|
||||||||||||
|
real/imag cnormal dist. with individ. (means,sigma=1)
|
|
||||||||||||
|
real/imag cnormal dist. with individ. (means,sigmas)
|
|
||||||||||||
|
real/imag cnormal dist. with individ. (means,sigma=1)
|
|
||||||||||||
|
real/imag cnormal dist. with (mean,sigma=1)
|
|
|
real/imag cnormal dist. with (sigma=1) and mean=0
Referenced by TDSPStochasticSignal::ChangeRepresentation(), and RandNC(). |
|
||||||||||||
|
imag parts normal dist. with (mean,sigma=1)
Definition at line 510 of file TDSPVector.h. References TComplex::fIm, fVec, and Num.
|
|
||||||||||||
|
init with random normal phases at a special rate
|
|
||||||||||||
|
real parts normal dist. with (mean,sigma=1)
Definition at line 505 of file TDSPVector.h. References TComplex::fRe, fVec, and Num.
|
|
|
init as random phasors (uniform phase ...)
|
|
||||||||||||
|
init with real rayleigh
Definition at line 557 of file TDSPVector.h. References Cos(), TComplex::fIm, TComplex::fRe, fVec, Num, Sin(), Sqrt(), and TComplexBase. Referenced by TDSPStochasticSignal::ChangeRepresentation().
00557 {
00558 TComplexBase tmp1,tmp2;
00559 for(register Int_t i=0;i<Num;++i) {
00560 tmp1=gRandom->Gaus(0,sigma);
00561 tmp2=gRandom->Gaus(0,sigma);
00562 tmp1=TMath::Sqrt(tmp1*tmp1+tmp2*tmp2);
00563
00564 fVec[i].fRe = TMath::Cos(phase)*tmp1;
00565 fVec[i].fIm = TMath::Sin(phase)*tmp1;
00566 }
00567 }
|
|
|
Definition at line 118 of file TDSPVector.h. References fAllocedVec, and fVec.
00118 { fVec = fAllocedVec;};
|
|
|
Reverse the order.
Definition at line 494 of file TDSPVector.h.
|
|
|
Definition at line 229 of file TDSPVector.h. References fSamplingRate.
00229 { fSamplingRate *= s;};
|
|
||||||||||||||||
|
Save a Vector into a file/key.
|
|
||||||||||||
|
Save a Vector into a file/key.
|
|
||||||||||||||||||||
|
Set the values starting from i from vector at p..p+len-1.
|
|
|
Set all values to c.
Definition at line 467 of file TDSPVector.h. References TComplex::fIm, TComplex::fRe, fVec, and Num.
|
|
|
Set all values to c.
Definition at line 463 of file TDSPVector.h. Referenced by Ones(), operator=(), and Zeros().
|
|
|
Set all imag parts to c.
Definition at line 475 of file TDSPVector.h. References TComplex::fIm, fVec, and Num.
|
|
||||||||||||
|
Set the size.
Reimplemented in TDSPMatrix. Referenced by Adjoint(), Copy(), and TDSPMatrix::GetDiag(). |
|
|
Set the minimum size to alloc.
|
|
|
Set all real parts to c.
Definition at line 471 of file TDSPVector.h. References TComplex::fRe, fVec, and Num.
|
|
|
Definition at line 227 of file TDSPVector.h. References fSamplingRate. Referenced by Configure().
00227 { fSamplingRate = s;};
|
|
||||||||||||
|
Set the pointer to extern data.
Definition at line 458 of file TDSPVector.h. Referenced by Alias(), TDSPBlockFifo::Shift(), and TDSPOutput1::Update().
|
|
|
Set the name of the xtitle.
|
|
|
Set the name of the ytitle.
|
|
|
Definition at line 116 of file TDSPVector.h. References fZero.
00116 { fZero=z; };
|
|
|
Sine of the Vector.
Definition at line 609 of file TDSPVector.h.
|
|
|
Square the vector-abs : c^* * c.
Definition at line 569 of file TDSPVector.h. References TComplex::fRe, fVec, and Num. Referenced by Abs2().
|
|
|
Square Root of the Vector.
Definition at line 580 of file TDSPVector.h.
|
|
|
Square Root only on the imaginary part of the Vector.
Definition at line 619 of file TDSPVector.h. References TComplex::fIm, fVec, Num, and Sqrt().
00619 {
00620 for(register Int_t i=0;i<Num;++i)
00621 fVec[i].fIm = TMath::Sqrt(fVec[i].fIm);
00622 }
|
|
|
Square Root only on the real part of the Vector.
Definition at line 614 of file TDSPVector.h. References TComplex::fRe, fVec, Num, and Sqrt().
00614 {
00615 for(register Int_t i=0;i<Num;++i)
00616 fVec[i].fRe = TMath::Sqrt(fVec[i].fRe);
00617 }
|
|
|
Init with 0,1,2,3 ...
Definition at line 552 of file TDSPVector.h.
|
|
||||||||||||
|
Init with start,start+step,start+2*step etc.
Definition at line 545 of file TDSPVector.h.
|
|
|
Init with start,start+1,start+2 etc.
Definition at line 537 of file TDSPVector.h.
|
|
||||||||||||
|
Init with start,start+step,start+2*step etc.
Definition at line 529 of file TDSPVector.h.
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
The Sum.
Referenced by Mean(). |
|
|
The Sum of squares abs.
|
|
||||||||||||
|
Swap two elements.
Definition at line 800 of file TDSPVector.h. References fVec.
|
|
||||||||||||||||||||||||
|
K-fold interpolation filter with response "pulse".
|
|
|
Definition at line 104 of file TDSPVector.h. References fATLAS.
00104 { return fATLAS;};
|
|
|
Definition at line 339 of file TDSPVector.h.
00339 { fPerLine = p;};
|
|
|
Calculate the Variance.
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||
|
Definition at line 275 of file TDSPVector.h. References XCorr().
00277 { return XCorr(i2, NULL , max_lags, o); };
|
|
||||||||||||
|
Definition at line 272 of file TDSPVector.h. Referenced by XCorr().
00273 { return XCorr(this, NULL , max_lags, o);};
|
|
|
Definition at line 126 of file TDSPVector.h. References Set(). Referenced by Delta().
00126 { Set(0.0); };
|
|
||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||
|
Referenced by TDSPStochasticSignal::ChangeRepresentation(). |
|
||||||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
How many Values to Print per line (using cout...). if the vector have not equal length the rest of the larger one has to be zero Definition at line 685 of file TDSPVector.h.
00685 {
00686 if (z1.GetSamplingRate()!=z2.GetSamplingRate()) {
00687 Warning("Dot2","Sampling rates differ (%f != %f) - vectors are NOT equal !",z1.GetSamplingRate(),z2.GetSamplingRate());
00688 return kFALSE;
00689 }
00690 Int_t len1 = z1.GetLen();
00691 Int_t len2 = z2.GetLen();
00692
00693 TComplex *vec1 = z1.GetVec();
00694 TComplex *vec2 = z2.GetVec();
00695
00696 if (len2<len1) {
00697 register Int_t tmp = len1;
00698 len1=len2;
00699 len2=tmp;
00700 vec1 = z2.GetVec();
00701 vec2 = z1.GetVec();
00702 } else {
00703 vec1 = z1.GetVec();
00704 vec2 = z2.GetVec();
00705
00706 }
00707
00708 register Int_t i;
00709 for(i=0;i<len1;++i)
00710 if (vec1[i]!=vec2[i]) return kFALSE;
00711
00714
00715 for(;i<len2;++i)
00716 if (vec2[i].fRe || vec2[i].fIm) return kFALSE;
00717
00718 return kTRUE;
00719 }
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
Definition at line 92 of file TDSPVector.h. |
|
|
Definition at line 91 of file TDSPVector.h. Referenced by ResetSignal(). |
|
|
Definition at line 84 of file TDSPVector.h. Referenced by DisableATLAS(), EnableATLAS(), and UsingATLAS(). |
|
|
mom. position for pointwise filling etc.
Definition at line 89 of file TDSPVector.h. Referenced by operator &=(). |
|
|
The Sampling Rate.
Definition at line 93 of file TDSPVector.h. Referenced by Energy(), GetSamplingRate(), GetTime(), operator==(), SamplingRate(), and SetSamplingRate(). |
|
|
Strictmode 0=none,1=warning,2=strict.
Definition at line 83 of file TDSPVector.h. |
|
|
Definition at line 87 of file TDSPVector.h. Referenced by Abs(), Adjoint(), AdjointMe(), Alias(), Apply(), TDSPStochasticSignal::ChangeRepresentation(), Copy(), TDSPMatrix::Copy(), Cos(), Dot(), Dot2(), Element(), TDSPMatrix::Element(), Exp(), GetVec(), Log(), Log10(), Log2(), MaxAbs2(), MaxImag(), MaxReal(), MinAbs2(), MinImag(), MinReal(), MoveVec(), operator &=(), operator *=(), operator()(), TDSPMatrix::operator()(), operator+=(), operator-=(), operator/=(), operator[](), Phase(), RandN(), RandNimag(), RandNreal(), RandRayleigh(), ResetSignal(), Reverse(), Set(), SetImag(), SetReal(), SetVec(), Sin(), Sqr(), Sqrt(), SqrtImag(), SqrtReal(), Step(), Swap(), and TDSPMatrix::Swap(). |
|
|
A name for the vector index.
Definition at line 85 of file TDSPVector.h. |
|
|
A name for the vector content.
Definition at line 86 of file TDSPVector.h. |
|
|
for absolut positioning (=pos of the zero)
Definition at line 94 of file TDSPVector.h. |
|
|
Len of signal vectorm.
Definition at line 88 of file TDSPVector.h. Referenced by Abs(), Adjoint(), AdjointMe(), Alias(), Apply(), TDSPStochasticSignal::ChangeRepresentation(), Copy(), TDSPMatrix::Copy(), Cos(), Dot(), Dot2(), Exp(), GetLen(), GetTime(), Hi(), Log(), Log10(), Log2(), MaxAbs2(), MaxImag(), MaxReal(), Mean(), Mean2(), MinAbs2(), MinImag(), MinReal(), operator *=(), operator()(), operator+=(), operator-=(), operator/=(), Phase(), Power(), RandN(), RandNimag(), RandNreal(), RandRayleigh(), Reverse(), Set(), SetImag(), SetReal(), SetVec(), Sin(), Sqr(), Sqrt(), SqrtImag(), SqrtReal(), and Step(). |
1.3.2