PhaseBinning#
- class ptiming_ana.phaseogram.PhaseBinning(bins, xmin=None, xmax=None)#
Bases:
object
A class to define the binning used in the construction of the lightcurve. It allows to change, manipulate and find the phase binning of the histogram
- Parameters:
- binsint, array
If an integer is provided, it is used as the number fix-width bins in the lightcurve. If an array are provided, that list will be used as the bin edges of the lightcurve.
- xminfloat
Lower edge of the lightcuve binning
- xmaxfloat
Higher edge of the lightcuve binning
- Attributes:
- nbinsint
Number of bins used in the lightcurve
- xminfloat
Lower edge of the lightcuve binning
- xmaxfloat
Higher edge of the lightcuve binning
- bins: list
List of bin edges of the lightcuve
Methods Summary
Find_CloseEdge
(value)Find_LowHiEdge
(value)set_edges
([nbins, xmin, xmax])Methods Documentation
- Find_CloseEdge(value)#
- Find_LowHiEdge(value)#
- getNumEdges()#
- set_edges(nbins=None, xmin=None, xmax=None)#