ThresholdMatch.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/Base/Classes/Pulsar/ThresholdMatch.h
10 
11 #ifndef __Pulsar_ThresholdMatch_h
12 #define __Pulsar_ThresholdMatch_h
13 
14 #include "Pulsar/ArchiveMatch.h"
15 
16 namespace Pulsar {
17 
19  class ThresholdMatch : public Archive::Match {
20 
21  public:
22 
25 
27  void set_maximum_relative_bandwidth (double delta_bw);
28 
30  bool get_bandwidth_match (const Archive* a, const Archive* b) const;
31 
33  static void set_BPP (Archive*);
34 
35  protected:
36 
37  double maximum_relative_bandwidth;
38 
39  };
40 
41 }
42 
43 #endif
Jones< double > evaluate(std::vector< Jones< double > > *grad=0) const
void set_param(unsigned index, double value)
void set_hour_angle(double rad)
Phenomenological description of the instrument.
Definition: Instrument.h:31
virtual void calibrate(Archive *archive)
Calibrate the polarization of the given archive.
Definition: PolnCalibrator.C:874
static double to_real(const E &element)
void covariance(Scalar *function, unsigned index, std::vector< unsigned > &imap, std::vector< std::vector< double > > &covar)
double get_parallactic_angle() const
double mean(float phase, float duty_cycle=default_duty_cycle) const
Convenience interface to stats, returns only the mean.
Definition: Profile_stats.C:121
void set_maximum_relative_bandwidth(double delta_bw)
Set the maximum relative bandwidth by which archives may differ.
Definition: ThresholdMatch.C:23
void set_Y_offset(const Angle &offset)
Set the offset of the feed Y axis from its nominal value.
Definition: Receiver.C:149
static Configuration::Parameter< Policy > & get_policy()
void set_hand(Signal::Hand)
Set the hand of the basis.
Definition: Receiver.C:112
void set_observatory_latitude(double latitude)
void tscrunch(Container *, const ScrunchFactor &)
Integrate sub-integrations.
Definition: ScrunchFactor.h:109
virtual std::string get_name() const=0
void set_mixable(Match *)
The default baseline removal strategy.
Definition: Archive_match.C:95
ThresholdMatch()
Default constructor.
Definition: ThresholdMatch.C:17
Expert * expert()
Provide access to the expert interface.
Definition: IntegrationManager.C:233
void load()
Load the global configuration files.
Definition: Config.C:43
Instrument * clone() const
Clone operator.
Definition: Instrument.C:55
void solve()
Solve the equation.
Definition: ModeSeparation.C:268
void set_source_coordinates(const sky_coord &coords)
static bool verbose
flag controls the amount output to stderr by Integration methods
Definition: Integration.h:42
const ScalarMath atan(const ScalarMath &x)
Criterion used to determine if two archives match.
Definition: ThresholdMatch.h:24
static Configuration::Parameter< double > & get_maximum_rms()
int config()
Definition: Tempo_config.C:26
Derives SingleAxis parameters from input and output states.
Definition: SingleAxisSolver.h:29
static void set_BPP(Archive *)
Setup for BPP-derived backends.
Definition: ThresholdMatch.C:67
void set_transformation(const Jones< double > &)
void set_directional(Directional *)
Set the directional antenna.
Definition: Parallactic.C:22
static bool verbose
double get_hour_angle() const
const ScalarMath log(const ScalarMath &x)
float find_min_phase(float duty_cycle=default_duty_cycle) const
Returns the phase of the centre of the region with minimum mean.
Definition: Profile_find_minmax_phase.C:21
static Interface * get_interface()
Return the text interface to the configuration parameters.
Definition: Config.C:144
void set_phi(const Estimate< double > &radians)
const ScalarMath sin(const ScalarMath &x)
static void agent_report()
Report on the status of the plugins.
Definition: Archive.C:120
static Configuration::Parameter< unsigned > & get_minimum_nspan()
virtual std::string get_description() const=0
Any quantity recorded as a function of pulse phase.
Definition: Profile.h:45
virtual Stokes< Estimate< double > > get_stokes() const
The primary interface to pulsar observational data.
Definition: Archive.h:45
PolnCalibrator * generatePolnCalibrator(Archive *, const Calibrator::Type *m)
Return a pointer to a new PolnCalibrator for the given archive.
Definition: Database.C:1422
static Archive * load(const std::string &name)
Factory returns a new instance loaded from filename.
Definition: Archive_load.C:28
Contains information about the receiver and receiver platform.
Definition: Receiver.h:28
static void set_verbosity(unsigned level)
Set the verbosity level (0 to 3)
Definition: Archive_verbose.C:19
void set_optimizing_transformation(const Matrix< 4, 4, double > &opt)
Set the optimizing transformation applied to the template.
Definition: TotalCovariance.C:45
Models a set of transformations and source polarizations.
Definition: ReceptionModel.h:32
Matrix< 4, 4, double > get_covariance() const
static bool verbose
flag controls the amount output to stderr by Profile methods
Definition: Profile.h:53
bool get_bandwidth_match(const Archive *a, const Archive *b) const
Return true if the bandwidths match.
Definition: ThresholdMatch.C:28
Phenomenological description of the receiver feed.
Definition: Feed.h:32
const ScalarMath sqrt(const ScalarMath &x)
void sort(StrictWeakOrdering comp)
Sort the Integrations according to the specified order.
Definition: IntegrationManagerExpert.h:66
void set_diff_phase(const Estimate< double > &phi)
Set the differential phase, , in radians.
Definition: SingleAxis.C:124
Type * get() const
void fscrunch(Container *, const ScrunchFactor &)
Integrate frequency channels.
Definition: ScrunchFactor.h:102
static unsigned verbose
Verbosity level.
Definition: Calibrator.h:40
Commmon statistics that can be derived from a pulse profile.
Definition: ProfileStatistic.h:26
Correct the backend convention.
Definition: BasisCorrection.h:28
void shift(unsigned npts, float *arr, double shift)
Value * new_Value(const Type &value)
International Reference Ionosphere (IRI) transformation.
Definition: IRIonosphere.h:27
Stokes< double > get_reference_source() const
Return the Stokes parameters of the reference source.
Definition: Receiver.C:220
Integration * get_Integration(unsigned subint)
Return pointer to the specified Integration.
Definition: IntegrationManager.C:41
void set_observatory_longitude(double longitude)
void set_infit(unsigned coef, bool fit)
Set the fit flag for the specified coefficient of each Polynomial.
Definition: SingleAxisPolynomial.C:139
void add_model(T *model)
static size_t get_instance_count()
static bool verbose
Callback< Type > signal
const ScalarMath cosh(const ScalarMath &x)
Instrumental gain, differential gain, and differential phase.
Definition: SingleAxis.h:38
void set_value(const T &t)
A CoherencyMeasurement set and their coordinates.
Definition: CoherencyMeasurementSet.h:26
static bool very_verbose
Configuration option.
Definition: Config.h:73
void set_epoch(const MJD &epoch)
void set_cyclic(bool flag=true)
Set cyclical limits on the model parameters.
Definition: Instrument.C:166
static Type * factory(const std::string &name)
Construct a new instance of Calibrator::Type, based on name.
Definition: CalibratorType.C:12
Policy used to determine if two archives match.
Definition: ArchiveMatch.h:25
void set_calibrator_offset(const Angle &offset)
Set the offset of the feed calibrator axis from its nominal value.
Definition: Receiver.C:164
T get_value() const
void set_coordinates() const
Apply the independent variables.
Definition: CoherencyMeasurementSet.C:41
Separates polarized modes of emission.
Definition: ModeSeparation.h:28
Definition: CalibratorType.h:30
void set_horizon(const Horizon &)
Set the Horizon pointing parameters.
Definition: IRIonosphere.C:52
void set_transformation(MEAL::Complex2 *transformation)
Set the transformation from template to observation.
Definition: TemplateUncertainty.C:82
static Interface * interface
The global configuration interpreter.
Definition: Config.h:66
void connect(Class *instance, Method method)
bool verbose
Definition: timer++.C:25
virtual double get_bandwidth() const =0
Get the overall bandwidth of the observation.
static bool cache_results
void set_variance(const Stokes< double > &)
void set_reference_source_phase(const Angle &phase)
Set the phase of the reference source.
Definition: Receiver.C:118
void unload(FILE *) const
void set_processing_match(Match *)
The default baseline removal strategy.
Definition: Archive_match.C:83
void solve(SingleAxis *model)
Set the SingleAxis parameters with the current solution.
Definition: SingleAxisSolver.C:75
Polarimetric calibrators.
Definition: PolnCalibrator.h:41
static std::string get_runtime()
Return the name of the runtime directory.
Definition: Config.C:120
void set_template_variance(const Stokes< double > &var)
Set the uncertainty of the template.
Definition: TemplateUncertainty.C:59
const ScalarMath cos(const ScalarMath &x)
static bool verbose
const VariableBackend * get_backend() const
Provide access to the backend model.
Definition: BackendFeed.C:60
static ProfileStatistic * factory(const std::string &name)
Create a new instance of ProfileStatistic based on name.
Definition: ProfileStatistic.C:75
static unsigned verbose
A verbosity flag that can be set for debugging purposes.
Definition: IntegrationManager.h:38
Manages a vector of Integration instances.
Definition: IntegrationManager.h:33
Pulsar Observation Database.
Definition: Database.h:40
void set_X_offset(const Angle &offset)
Set the offset of the feed X axis with respect to the platform zero.
Definition: Receiver.C:135
void set_argument(unsigned dimension, MEAL::Argument *axis)
Connect the set_abscissa method to the axis value.
Definition: SingleAxisPolynomial.C:84
A coherency matrix measurement and its estimated error.
Definition: CoherencyMeasurement.h:32
void set_mean(const Stokes< Estimate< double > > &)
Set the estimated mean Stokes parameters.
Definition: ModeSeparation.C:182
void set_output(const Stokes< Estimate< double > > &stokes)
Set the input Stokes parameters.
Definition: SingleAxisSolver.C:59
virtual Archive * clone() const =0
Return a new copy constructed instance equal to this.
virtual std::string get_value() const=0
static Configuration::Parameter< std::string > & get_keyword_filename()
Defines the pure virtual methods declared in Pulsar::Archive.
Definition: BasicArchive.h:37
const std::string get_message() const
void set_calibrator_match(Match *)
The default baseline removal strategy.
Definition: Archive_match.C:71
Defines the PSRCHIVE library.
Definition: CalSource.h:17
Manages arrival time estimation.
Definition: ArrivalTime.h:40
U get_variance() const
void set_hour_angle(double radians)
Set the hour angle in radians.
Definition: Parallactic.C:56
Parallactic angle transformation of receiver feed.
Definition: Parallactic.h:58
virtual double get_folding_period() const =0
Get the folding or topocentric pulsar period (in seconds)
double get_rotation_measure() const
Get the Faraday rotation measure.
Definition: IRIonosphere.C:59
Combines the uncertainty of the template and the observation.
Definition: TotalCovariance.h:25
void set_input(const Stokes< Estimate< double > > &stokes)
Set the input Stokes parameters.
Definition: SingleAxisSolver.C:42
const ScalarMath atan2(const ScalarMath &y, const ScalarMath &x)
void set_covariance(const Matrix< 4, 4, Estimate< double > > &)
Set the estimated covariance matrix of the Stokes parameters.
Definition: ModeSeparation.C:218
A SingleAxis parameterized by Polynomial ordinates.
Definition: SingleAxisPolynomial.h:35
static bool verbose
void set_gain_variation(MEAL::Scalar *)
Set the instrumental gain variation.
Definition: VariableBackend.C:138
void get(Polar *)
Compute the logarithm of the Profile.
Definition: AddNoise.h:27
static Receiver * load(const std::string &filename)
Construct a new Receiver instance from a file.
Definition: Receiver_load.C:15
Reads and writes the timer archive file format.
Definition: TimerArchive.h:29
Pulsar data processing command language interpreter.
Definition: Interpreter.h:57
unsigned nthread
void set_standard_match(Match *)
The default baseline removal strategy.
Definition: Archive_match.C:59
Jones< double > get_weighted_conjugate(const Jones< double > &) const
Given a coherency matrix, return the weighted conjugate matrix.
Definition: TotalCovariance.C:66

Generated using doxygen 1.8.17