Class binned_t

Inheritance Relationships

Base Type

Class Documentation

class binned_t : public wt::spectrum::spectrum_real_t

Piecewise-linear (real-valued) spectrum, using binning. Underlying distribution is a binned_piecewise_linear_distribution_t, which uses equally-spaced bins across the spectral range. More efficient than a piecewise_linear_t spectrum.

Public Functions

inline binned_t(std::string id, binned_piecewise_linear_distribution_t &&dist)
binned_t(const binned_t&) = default
binned_t(binned_t&&) = 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 average 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_real_t> load(std::string id, scene::loader::loader_t *loader, const scene::loader::node_t &node, const wt::wt_context_t &context)