bin_spectrum#
- fleck.jax.bin_spectrum(spectrum, bins=None, log=True, min=None, max=None, **kwargs)[source]#
Bin a spectrum, with log-spaced frequency bins.
- Parameters:
- spectrum
specutils.Spectrum1D
- logbool
If true, compute bin edges based on the log base 10 of the frequency.
- binsint or ~numpy.ndarray
Number of bins, or the bin edges
- spectrum
- Returns:
- new_spectrum