|
| ScalarFilter () |
| Default constructor.
|
|
| ~ScalarFilter () |
| Destructor.
|
|
void | resize (unsigned _npol, unsigned _nchan, unsigned _ndat, unsigned _ndim) |
| Set the dimensions of the data, updating built attribute. More...
|
|
void | set_scale_factor (float scale_factor) |
| Set the scalar factor to be applied in the response. More...
|
|
void | set_nchan (unsigned _nchan) |
| Set the number of input channels.
|
|
void | set_ndat (unsigned _ndat) |
| Set the length of the frequency response for each input channel. More...
|
|
float | get_scale_factor () |
| Return the scale factor being applied.
|
|
float | get_scale_factor () const |
|
void | build () |
|
void | match (const Observation *input, unsigned nchan=0) |
| Create an Scalar filter for the specified observation. More...
|
|
void | match (const Response *response) |
| Create an Scalar filter with the same number of channels as Response. More...
|
|
| Response () |
| Default constructor.
|
|
virtual | ~Response () |
| Destructor.
|
|
| Response (const Response &) |
| Copy constructor.
|
|
const Response & | operator= (const Response &) |
| Assignment operator.
|
|
const Response & | operator*= (const Response &) |
| Multiplication operator.
|
|
virtual void | prepare (const Observation *input, unsigned channels=0) |
| Calculate the impulse_pos and impulse_neg attributes.
|
|
unsigned | get_input_nchan () const |
| Get the number of input channels.
|
|
void | set_input_nchan (unsigned _input_nchan) |
| Set the number of input channels.
|
|
unsigned | get_impulse_pos () const |
| Get the size of the positive half of the impulse response, . More...
|
|
unsigned | get_impulse_neg () const |
| Get the size of the negative half of the impulse response, . More...
|
|
void | set_impulse_pos (unsigned _impulse_pos) |
| Set the size of the positive half of the impulse response, . More...
|
|
void | set_impulse_neg (unsigned _impulse_neg) |
| Set the size of the negative half of the impulse response, . More...
|
|
virtual void | set_dc_centred (bool dc_centred) |
| Set the flag for a bin-centred spectrum.
|
|
bool | get_dc_centred () const |
| Get the flag for a bin-centred spectrum.
|
|
virtual void | set_swap (bool flag) |
| Set the flag for a band-swapped spectrum.
|
|
bool | get_swap () const |
| Get the flag for a band-swapped spectrum.
|
|
unsigned | get_minimum_ndat () const |
| Return the minimum useable ndat. More...
|
|
void | set_optimal_ndat () |
| Resize with ndat set to the optimal value. More...
|
|
void | set_optimal_fft (OptimalFFT *) |
| Set the policy used to compute the optimal FFT length.
|
|
OptimalFFT * | get_optimal_fft () const |
|
bool | has_optimal_fft () const |
|
void | check_ndat () const |
| Given impulse_pos and impulse_neg, check that ndat is large enough.
|
|
std::vector< float > | get_passband (unsigned ipol, int ichan=-1) const |
| Get the passband.
|
|
void | set (const std::vector< std::complex< float > > &phasors) |
| Construct frequency response from complex phasors.
|
|
void | set (const std::vector< Jones< float > > &jones) |
| Construct frequency response from jones matrices.
|
|
void | operate (float *spectrum, unsigned poln=0, int ichan=-1) const |
| Multiply spectrum by complex frequency response. More...
|
|
void | operate (float *spectrum, unsigned poln, int ichan_start, unsigned nchan_op) const |
| Multiply spectrum by complex frequency response. More...
|
|
void | operate (float *input_spectrum, float *output_spectrum, unsigned poln, int ichan_start, unsigned nchan_op) const |
| Multiply spectrum by complex frequency response, out-of-place. More...
|
|
void | operate (float *spectrum1, float *spectrum2, int ichan=-1) const |
| Multiply spectrum vector by complex matrix frequency response.
|
|
void | integrate (float *spectrum, unsigned poln=0, int ichan=-1) |
| Integrate the power of spectrum into self. More...
|
|
void | integrate (float *spectrum1, float *spectrum2, int ichan=-1) |
| Integrate coherency matrix of vector spectrum into self.
|
|
virtual bool | matches (const Shape *response) |
| Returns true if the dimension and ordering match.
|
|
virtual void | mark (Observation *output) |
| Modify the out Observation information as seen fit by sub-classes.
|
|
void | naturalize () |
| Re-organize frequency bins to reflect natural ordering (DC->Nyq)
|
|
virtual bool | state_is_valid (std::string &reason) |
| Enable Response to be used in Transformation template.
|
|
void | flagswap (unsigned divisions=1) |
| Set flags that response should be swapped.
|
|
float | get_nbyte () const |
| Requires zero bytes per time sample.
|
|
void | check_finite (const char *name) |
| Worker function checks that every value in response is finite.
|
|
| Shape () |
| Default constructor.
|
|
virtual | ~Shape () |
| Destructor.
|
|
| Shape (const Shape &) |
| Copy constructor.
|
|
const Shape & | operator= (const Shape &) |
| Assignment operator.
|
|
unsigned | get_npol () const |
| Get the number of polarizations.
|
|
unsigned | get_nchan () const |
| Get the number of frequency channels.
|
|
unsigned | get_ndat () const |
| Get the number of datum in each of the nchan*npol divisions.
|
|
unsigned | get_ndim () const |
| Get the dimension of each datum (e.g. 2=complex 8=Jones)
|
|
void | scrunch_to (unsigned ndat) |
| Scrunch each dimension to a new ndat.
|
|
void | rotate (int npt) |
| Rotate data so that Shape[i] = Shape[i+npt].
|
|
void | zero () |
| Set all values to zero.
|
|
void | zero_dimensions () |
| Set all dimnensions to zero; allocated memory unaffected.
|
|
void | borrow (const Shape &, unsigned ichan=0) |
| Borrow the data from the specified channel of another Shape.
|
|
const Shape & | operator/= (float factor) |
| Divide each point by factor.
|
|
const Shape & | operator*= (float factor) |
| Multiply each point by factor.
|
|
const Shape & | operator+= (const Shape &) |
| Add another Shape to this one.
|
|
float * | get_datptr (unsigned ichan, unsigned ipol) |
| Provide access to the data for the specified polarization.
|
|
const float * | get_datptr (unsigned ichan, unsigned ipol) const |
| Provide access to the data for the specified polarization.
|
|
| OwnStream (const OwnStream &) |
|
const OwnStream & | operator= (const OwnStream &) |
|
virtual void | set_cout (std::ostream &) const |
|
virtual void | set_cerr (std::ostream &) const |
|
| Able (const Able &) |
|
Able & | operator= (const Able &) |
|
unsigned | get_reference_count () const |
|
| HeapTracked (const HeapTracked &) |
|
HeapTracked & | operator= (const HeapTracked &) |
|
bool | __is_on_heap () const |
|
Simple rescaling with a scalar frequency response function.