Ask a Question | Search PSRCHIVE: |
Home
|
ComponentModel.h void fit(const Pulsar::Parameters *model, std::vector< toa > &data, Pulsar::Parameters *postfit=NULL, bool track=false, Tempo::toa::State min_state=Tempo::toa::Normal) void set_constraint(unsigned iparam, Scalar *scalar) void fix_relative_phases() Fix the relative phases of the components. Definition: ComponentModel.C:72 void phase(Profile *input) Compute the phase of the input complex-valued Profile. Definition: Fourier.C:135 MEAL::Univariate< MEAL::Scalar > * get_model() Get the component model. Definition: ComponentModel.C:65 std::string get_name() const Return the name of the file from which the component model was loaded. Definition: ComponentModel.h:54 const float * get_amps() const Return a pointer to the amplitudes array. Definition: ProfileAmps.C:141 Estimate< double > get_shift() const Return the shift estimate. Definition: ComponentModel.C:130 void frc1d(size_t nfft, float *into, const float *from) std::map< unsigned, std::string > comments comments, indexed by line number Definition: ComponentModel.h:162 ComponentModel * clone() const Return a copy constructed instance of self. Definition: ComponentModel.h:60 void set_zap_height_ratio(float r) Remove components with small heights. Definition: ComponentModel.h:122 Estimate< double > shift(const Profile &std) const Returns the shift (in turns) between profile and standard. Definition: Profile_shift.C:20 void bcr1d(size_t nfft, float *into, const float *from) void set_zap_concentration_ratio(float r) Remove components with large concentrations (narrow widths) Definition: ComponentModel.h:126 void set_retain_memory(bool flag=true) Previous best fit model will be first guess on next call to get_shift. Definition: ComponentModel.C:106 T val unsigned get_nbin() const Return the number of bins. Definition: ProfileAmps.h:50 void scale(double scale) multiplies each bin of the profile by scale Definition: Profile.C:311 Value get_Value(const Type &value) void set_value(const Type &value) double get_absolute_phase() const Return the absolute phase. Definition: ComponentModel.C:208 void rotate_phase(double phase) rotates the profile by phase (in turns) Definition: Profile_rotate.C:35 ComponentModel() Default constructor. Definition: ComponentModel.C:54 void add_model(T *model) void derivative(unsigned npts, float *data) void align_to_model(Profile *profile) Roughly align the Profile to match the phases and heights of the components. Definition: ComponentModel.C:411 void set_model(T *model) void set_log_height(bool flag=true) All heights will be treated as log(height) Definition: ComponentModel.C:97 void add_component(double centre, double concentration, double height, const char *name) Definition: ComponentModel.C:367 TextInterface::Parser * get_interface() Return a text interface that can be used to configure this instance. Definition: ComponentModel.C:950 Models a pulse profile using multiple components. Definition: ComponentModel.h:34 Algorithms that estimate the phase shift from a single pulse profile. Definition: ProfileShiftEstimator.h:25 PhaseWeight * baseline() const Return a new PhaseWeight instance with the baseline phase bins masked. Definition: Profile_baseline.C:15 double get_reduced_chisq() const Return the statistical goodness-of-fit. Definition: ComponentModel.h:66 void align(const Profile *profile) Roughly align the phases and heights of the components to match the Profile. Definition: ComponentModel.C:448 double get_gate_duty_cycle() const Get the fraction of the pulse period modelled (in turns) Definition: ComponentModel.h:45 void clear() virtual void set_gate_duty_cycle(double turns) Set the fraction of the pulse period modelled (in turns) Definition: ComponentModel.h:48 void get_best_alignment(const Profile *profile, double &phase, double &scale) Returns the best fit phase and scale that aligns the model to the Profile. Definition: ComponentModel.C:426 Generated using doxygen 1.8.17
|