Template Class qspectrum_t¶
Defined in File qspectrum.hpp
Inheritance Relationships¶
Base Type¶
public wt::scene::scene_element_t(Class scene_element_t)
Class Documentation¶
-
template<Quantity Q>
class qspectrum_t : public wt::scene::scene_element_t¶ A helper spectrum that scales an underlying spectrum by a quantity. The underlying spectrum may be
nullptrin which case this spectrum is a uniform spectrum.Public Functions
-
qspectrum_t(const qspectrum_t&) = default¶
-
qspectrum_t(qspectrum_t&&) = default¶
-
inline const distribution1d_t *distribution() const noexcept¶
Returns the underlying spectrum distribution.
-
inline Q power(const range_t<wavenumber_t> &wavenumbers) const noexcept¶
Returns the spectral power over the provided wavenumber range.
-
inline range_t<wavenumber_t> wavenumber_range() const noexcept¶
Returns the range of wavenumbers for which this spectrum_complex is defined. Querying the spectrum with
wavenumber<range.minorwavenumber>range.maxwill always return 0.
-
inline wavenumber_t mean_wavenumber() const noexcept¶
Returns the mean wavenumber for this spectrum.
-
inline Q f(const wavenumber_t wavenumber) const noexcept¶
Query the spectrum.
Public Static Functions
-
static inline constexpr std::string scene_element_class() noexcept¶
-
static inline std::unique_ptr<qspectrum_t> load(std::string id, scene::loader::loader_t *loader, const scene::loader::node_t &node, const wt::wt_context_t &context)¶
-
qspectrum_t(const qspectrum_t&) = default¶