Wayverb
raytracer::img_src_calculation< num_bands > Struct Template Referencefinal

Public Types

using real = float
 
using cplx = std::complex< real >
 
template<typename T >
using bins = std::array< T, num_bands >
 

Static Public Member Functions

template<typename T , typename Func >
static constexpr auto map_bins (const bins< T > &x, Func func)
 
static auto absorption_to_reflection_factor (real x)
 
static auto absorption_to_reflection_factor (const bins< real > &x)
 
static real compute_phase (real frequency, real time)
 
static auto compute_phase (const bins< real > &per_band_frequencies, real time)
 
static auto compute_unit_phase_spectrum (const bins< real > &per_band_frequencies, real time)
 
template<size_t output_bins>
static std::array< real, output_bins > cosine_smoothing (const bins< real > &per_band_amplitudes, const bins< real > &per_band_frequencies, real sample_rate)
 
template<typename It >
static auto compute_pressure_spectrum (It begin, It end, real distance, real speed_of_sound, real amplitude_adjustment, const bins< real > &per_band_frequencies)
 iterator over absorption coefficients
 

The documentation for this struct was generated from the following file: