Ask a Question | Search PSRCHIVE: |
Home
|
Classes |
Public Types |
Public Member Functions |
Static Public Member Functions |
Static Public Attributes |
Friends |
List of all members
Pulsar::Profile Class Reference Any quantity recorded as a function of pulse phase. More...
Inheritance diagram for Pulsar::Profile:
Detailed DescriptionAny quantity recorded as a function of pulse phase. The Pulsar::Profile class implements a useful, yet minimal, set of functionality required to store, manipulate, and analyse pulsar profiles. Note that:
This arrangement protects the size of each Profile object from becoming unsynchronized with the Integration in which it is contained. The data in each Profile may still be manipulated through public methods. Member Function Documentation◆ add_extension()
◆ average()
set this to the weighted average of this and that A series of additions using this operator preserves the relationship: where is the weight assigned to and
Referenced by Pulsar::Integration::combine(), and Pulsar::TimeIntegrate::transform(). ◆ baseline()
Return a new PhaseWeight instance with the baseline phase bins masked. Return a PhaseWeight mask with the baseline phase bins enabled. Referenced by Pulsar::FluxPlot::get_flux_error(), Pulsar::FortranSNR::get_snr(), and Pulsar::AdaptiveSNR::get_snr(). ◆ dedisperse()
Rotates the profile to remove dispersion delay. A convenience interface to Profile::rotate_phase. Rotates the profile in order to remove the dispersion delay with respect to a reference frequency.
◆ find_max_phase()
Returns the phase of the centre of the region with maximum mean. Returns the centre phase of the region with maximum mean
Referenced by Pulsar::Statistics::get_peak(). ◆ find_min_phase()
Returns the phase of the centre of the region with minimum mean. Returns the centre phase of the region with minimum mean
Referenced by Pulsar::find_spike_edges(), Pulsar::NoiseStatistics::get_nfnr(), Pulsar::PhaseSNR::get_snr(), and Pulsar::InfoLabel::plot(). ◆ find_transitions()
Find the bin numbers at which the mean power transits. Finds the transitions at which the mean power of a sliding window drops below the mean power (high to low) and at which it jumps back above the mean power (low to high). The function is best-suited to detect the transitions of a pulsed calibrator profile, which is usually a square wave with 0.5 duty cycle. The width of the sliding window is given by Pulsar::Profile::transition_duty_cycle.
Referenced by Pulsar::ProfilePlot::draw_transitions(), and Pulsar::SquareWave::get_snr(). ◆ get() [1/2]
template<class T >
e.g. Profile* profile; MyExtension* ext = profile->get<MyExtension>(); ◆ get() [2/2]
template<class T >
e.g. const Profile* profile; const MyExtension* ext = profile->get<MyExtension>(); ◆ get_extension() [1/2]
Return a pointer to the specified extension. Simply calls get_extension const ◆ get_extension() [2/2]
◆ get_weighted_amps()
returns a vector representation of the array of amplitudes, with all zero-weighted points cleaned out Referenced by Pulsar::LinePhasePlot::draw(). ◆ mean()
Convenience interface to stats, returns only the mean.
Referenced by Pulsar::find_spike_edges(), and Pulsar::InfoLabel::plot(). ◆ operator=()
◆ rotate_phase()
rotates the profile by phase (in turns) Rotate the profile by the specified phase. The profile will be rotated such that the power at phase will be found at phase zero. ie. where is the new start time (rising edge of bin 0), is the original start time, is equal to phase, and is the period at the time of folding. References FTransform::shift(). Referenced by Pulsar::ComponentModel::align_to_model(), Pulsar::ProfileShiftFit::apply_scale_and_shift(), and Pulsar::MoreProfiles::rotate_phase(). ◆ snr()
Returns the signal to noise ratio of the profile. This method calls Profile::snr_strategy Referenced by Pulsar::SNRWeight::get_weight(). ◆ stats() [1/2]
Calculates the mean, variance, and variance of the mean. Returns the mean, variance, and variance of the mean over the specified interval.
Referenced by Pulsar::ProfilePlot::draw_transitions(), Pulsar::NoiseStatistics::get_nfnr(), Pulsar::PhaseSNR::get_snr(), Pulsar::SquareWave::get_snr(), Pulsar::InfoLabel::plot(), and Pulsar::Archive::rms_baseline(). ◆ stats() [2/2]
Convenience interface to stats (start_bin, end_bin)
Member Data Documentation◆ default_duty_cycle
fractional phase window used in most functions Default fractional pulse phase window used to calculate statistics related to the baseline. Referenced by Pulsar::Smooth::Smooth(). ◆ peak_edges_strategy
The default implementation of the edge detection algorithm. The PeakEdgesInterpreter class sets the peak_edges_strategy attribute according to commands specified either in the configuration file or via the psrsh interpreter. It enables convenient experimentation with the peak edges estimation algorithm. ◆ transition_duty_cycle
fractional phase window used to find rise and fall of running mean Fractional pulse phase window used to calculate the transitions in Pulsar::Profile::find_cal_transition ◆ verbose
flag controls the amount output to stderr by Profile methods When true, Profile methods will output debugging information on cerr Referenced by Pulsar::PhaseWeight::build(), Pulsar::ProfileStats::build(), Pulsar::ProfileStats::deselect_onpulse(), Pulsar::ProfileStats::get_total(), Profile(), Pulsar::ProfileStats::select_profile(), Pulsar::ProfileStats::set_baseline_estimator(), Pulsar::ProfileStats::set_exclude_estimator(), Pulsar::ProfileStats::set_include_estimator(), Pulsar::ProfileStats::set_onpulse_estimator(), Pulsar::ProfileStats::set_profile(), Pulsar::ProfileStats::set_regions(), Pulsar::ProfileStats::set_snratio_estimator(), Pulsar::Archive::set_verbosity(), Pulsar::ProfileStats::set_width_estimator(), and Pulsar::PhaseWeight::stats(). The documentation for this class was generated from the following files:
Generated using doxygen 1.8.17
|