TableInterpolationSpectrum

class pyirf.spectral.TableInterpolationSpectrum(energy, flux, log_energy=True, log_flux=True, reference_energy=<Quantity 1. TeV>)[source]

Bases: object

Interpolate flux points to obtain a spectrum.

By default, flux is interpolated linearly in log-log space.

Methods Summary

__call__(energy)

Call self as a function.

from_file(path[, log_energy, log_flux, ...])

from_table(table[, log_energy, log_flux, ...])

Methods Documentation

__call__(energy)[source]

Call self as a function.

classmethod from_file(path, log_energy=True, log_flux=True, reference_energy=<Quantity 1. TeV>)[source]
classmethod from_table(table: ~astropy.table.table.QTable, log_energy=True, log_flux=True, reference_energy=<Quantity 1. TeV>)[source]