3 #include "raytracer/stochastic/postprocessing.h" 11 auto operator()(
const T& t)
const {
16 template <
size_t Az,
size_t El,
typename Method>
22 const auto& table = histogram.histogram.table;
24 const auto max_size = std::accumulate(
28 [&](
auto a,
const auto& b) {
29 if (std::distance(std::begin(b), std::end(b)) == 0) {
32 const auto make_size_iterator = [](
auto it) {
33 return util::make_mapping_iterator_adapter(std::move(it),
38 *std::max_element(make_size_iterator(std::begin(b)),
39 make_size_iterator(std::end(b))));
42 const auto max_seconds = max_size / histogram.sample_rate;
45 environment.speed_of_sound, room_volume, sample_rate, max_seconds);
46 return postprocessing(
47 histogram, method,
dirac_sequence, environment.acoustic_impedance);
Definition: postprocessing.h:48
Definition: postprocess.h:9
Definition: pressure.h:22
Definition: environment.h:6
Definition: capsule_base.h:9
Definition: postprocessing.h:75