function¶
-
class function_t : public wt::spectrum::spectrum_real_t
(Real-valued) spectrum that is an (arbitrary) function of several nested spectra.
Public Types
-
using spectra_container_t = std::vector<std::shared_ptr<spectrum_real_t>>
-
using func_t = unique_function<f_t(const spectra_container_t&, const wavenumber_t) const noexcept>
Public Functions
-
inline function_t(std::string id, spectra_container_t &&spectra, func_t &&func, std::string func_description)
-
inline function_t(std::string id, func_t &&func, std::string func_description)
-
function_t(function_t&&) = default
-
virtual ~function_t() noexcept = default
-
inline virtual const distribution1d_t *distribution() const noexcept override
Returns the underlying spectrum distribution.
-
inline virtual f_t power() const noexcept override
Returns the total spectral power contained in this spectrum.
-
inline virtual f_t power(const range_t<wavenumber_t> &wavenumbers) const noexcept override
Returns the spectral power over the provided wavenumber range.
-
inline virtual range_t<wavenumber_t> wavenumber_range() const noexcept override
Returns the range of wavenumbers for which this spectrum is defined. Querying the spectrum with wavenumber<range.min or wavenumber>range.max will always be 0.
-
inline virtual wavenumber_t mean_wavenumber() const noexcept override
Returns the mean wavenumber for this spectrum.
-
inline virtual f_t f(const wavenumber_t wavenumber) const noexcept override
Query the spectrum. Returns the spectral power for the given wavenumber ‘wavenumber’.
-
virtual scene::element::info_t description() const override
Public Static Functions
-
static std::unique_ptr<spectrum_t> load(std::string id, scene::loader::loader_t *loader, const scene::loader::node_t &node, const wt::wt_context_t &context)
-
using spectra_container_t = std::vector<std::shared_ptr<spectrum_real_t>>