Class spectrum_real_t

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class spectrum_real_t : public wt::spectrum::spectrum_t

Purely real-valued spectrum, for power and power-like distributions.

Subclassed by wt::spectrum::analytic_t, wt::spectrum::binned_t, wt::spectrum::blackbody_t, wt::spectrum::composite_t, wt::spectrum::discrete_t, wt::spectrum::function_t, wt::spectrum::gaussian_t, wt::spectrum::piecewise_linear_t, wt::spectrum::rgb_t, wt::spectrum::uniform_t

Public Functions

inline spectrum_real_t(std::string id)
spectrum_real_t(const spectrum_real_t&) = default
spectrum_real_t(spectrum_real_t&&) = default
virtual ~spectrum_real_t() noexcept = default
virtual const distribution1d_t *distribution() const noexcept = 0

Returns the underlying spectrum distribution.

virtual f_t power() const noexcept = 0

Returns the total spectral power contained in this spectrum.

virtual f_t power(const range_t<wavenumber_t> &wavenumbers) const noexcept = 0

Returns the spectral power over the provided wavenumber range.

virtual wavenumber_t mean_wavenumber() const noexcept = 0

Returns the mean wavenumber for this spectrum.

virtual f_t f(const wavenumber_t wavenumber) const noexcept = 0

Query the spectrum. Returns the spectral power for the given wavenumber ‘wavenumber’.

inline virtual c_t value(const wavenumber_t wavenumber) const noexcept final

Query the spectrum. Returns the spectral value for the given wavenumber ‘wavenumber’.