find_spike_edges.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2002 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 // psrchive/More/General/find_spike_edges.h
10 
11 #ifndef __find_spike_edges_h
12 #define __find_spike_edges_h
13 
14 namespace Pulsar {
15 
16  class Profile;
17 
19  void find_spike_edges(const Profile* profile, int& rise, int& fall,
20  float pc = 0.2, int spike_bin = -1);
21 
22 }
23 
24 #endif
25 
double mean(float phase, float duty_cycle=default_duty_cycle) const
Convenience interface to stats, returns only the mean.
Definition: Profile_stats.C:121
float min(int bin_start=0, int bin_end=0) const
Returns the minimum amplitude.
Definition: Profile.C:665
const float * get_amps() const
Return a pointer to the amplitudes array.
Definition: ProfileAmps.C:141
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
Any quantity recorded as a function of pulse phase.
Definition: Profile.h:45
unsigned get_nbin() const
Return the number of bins.
Definition: ProfileAmps.h:50
void find_spike_edges(const Profile *profile, int &rise, int &fall, float pc=0.2, int spike_bin=-1)
Find the bin numbers at which the flux falls below a threshold.
Definition: find_spike_edges.C:19
float max(int bin_start=0, int bin_end=0) const
Returns the maximum amplitude.
Definition: Profile.C:651
Defines the PSRCHIVE library.
Definition: CalSource.h:17
int find_max_bin(int bin_start=0, int bin_end=0) const
Returns the bin number with the maximum amplitude.
Definition: Profile.C:622

Generated using doxygen 1.8.17