Fourier.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2006 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/General/Pulsar/Fourier.h
10 
11 #ifndef __Pulsar_Fourier_h
12 #define __Pulsar_Fourier_h
13 
14 #include "FTransformAgent.h"
15 
16 namespace Pulsar {
17 
18  class Profile;
19  class PolnProfile;
20 
22  Profile* fourier_transform (const Profile*, FTransform::Plan* = 0);
23 
25  PolnProfile* fourier_transform (const PolnProfile*, FTransform::Plan* = 0);
26 
28  Profile* complex_fourier_transform (const Profile*, FTransform::Plan* = 0);
29 
31  PolnProfile* complex_fourier_transform (const PolnProfile*, FTransform::Plan* = 0);
32 
34  void detect (Profile* input);
35 
37  void phase (Profile* input);
38 
40  void detect (PolnProfile* input);
41 
43  void phase (PolnProfile* input);
44 
46  void fourier_to_re_im (const PolnProfile* fourier, PolnProfile* re, PolnProfile* im);
47 
49  void fourier_to_re_im (const Profile* fourier, Profile* re, Profile* im);
50 }
51 
52 #endif
Profile * complex_fourier_transform(const Profile *, FTransform::Plan *=0)
Return the forward Fourier transform of the input Profile.
Definition: Fourier.C:61
Signal::State get_state() const
Get the State of the poln profile.
Definition: PolnProfile.h:94
void phase(Profile *input)
Compute the phase of the input complex-valued Profile.
Definition: Fourier.C:135
virtual void frc1d(size_t nfft, float *into, const float *from)=0
const float * get_amps() const
Return a pointer to the amplitudes array.
Definition: ProfileAmps.C:141
void frc1d(size_t nfft, float *into, const float *from)
Any quantity recorded as a function of pulse phase.
Definition: Profile.h:45
void fourier_to_re_im(const PolnProfile *fourier, PolnProfile *re, PolnProfile *im)
Divide the output of fourier_transform into its real and imaginary components.
Definition: Fourier.C:158
unsigned get_nbin() const
Return the number of bins.
Definition: ProfileAmps.h:50
Type * release()
Signal::Basis get_basis() const
Get the Basis of the poln profile.
Definition: PolnProfile.h:91
Profile * fourier_transform(const Profile *, FTransform::Plan *=0)
Return the forward Fourier transform of the input Profile.
Definition: Fourier.C:41
virtual void fcc1d(size_t nfft, float *into, const float *from)=0
Polarimetric pulse profile transformations and derivations.
Definition: PolnProfile.h:34
void detect(Profile *input)
Square-law detect the input complex-valued Profile.
Definition: Fourier.C:103
Defines the PSRCHIVE library.
Definition: CalSource.h:17
void fcc1d(size_t nfft, float *into, const float *from)
virtual void resize(unsigned nbin)
resize the data area
Definition: Profile.C:134
const Profile * get_Profile(unsigned ipol) const
Get the specifed constant profile.
Definition: PolnProfile.C:147
normalization get_norm()

Generated using doxygen 1.8.17