lightkurve.periodogram.Periodogram.bin

Periodogram.bin(binsize=10, method='mean')[source]

Bins the power spectrum.

Parameters
binsizeint

The factor by which to bin the power spectrum, in the sense that the power spectrum will be smoothed by taking the mean in bins of size N / binsize, where N is the length of the original frequency array. Defaults to 10.

methodstr, one of ‘mean’ or ‘median’

Method to use for binning. Default is ‘mean’.

Returns
binned_periodograma Periodogram object

Returns a new Periodogram object which has been binned.