#include "memory.h"#include "metrosampler.h"#include "dynload.h"Go to the source code of this file.
Defines | |
| #define | SAMPLE_FLOATS 7 |
Functions | |
| static float | mutate (const float x) |
| static float | mutateScaled (const float x, const float mini, const float maxi, const float range) |
| static void | initMetropolis (MetropolisSampler *sampler, const Sample *sample) |
| #define SAMPLE_FLOATS 7 |
Definition at line 37 of file metrosampler.cpp.
| static void initMetropolis | ( | MetropolisSampler * | sampler, | |
| const Sample * | sample | |||
| ) | [static] |
Definition at line 98 of file metrosampler.cpp.
References lux::AllocAligned(), lux::Sample::dxD, lux::Sample::n1D, lux::Sample::n2D, lux::MetropolisSampler::normalSamples, lux::Sample::nxD, lux::MetropolisSampler::offset, SAMPLE_FLOATS, lux::MetropolisSampler::sampleImage, lux::MetropolisSampler::timeImage, lux::MetropolisSampler::totalSamples, and lux::MetropolisSampler::totalTimes.
Referenced by lux::MetropolisSampler::GetNextSample().
| static float mutate | ( | const float | x | ) | [static] |
Definition at line 40 of file metrosampler.cpp.
References cimg_library::exp(), lux::random::floatValue(), and cimg_library::log().
Referenced by lux::MetropolisSampler::GetLazyValues(), and lux::MetropolisSampler::GetNextSample().
| static float mutateScaled | ( | const float | x, | |
| const float | mini, | |||
| const float | maxi, | |||
| const float | range | |||
| ) | [static] |
Definition at line 55 of file metrosampler.cpp.
References cimg_library::exp(), lux::random::floatValue(), and cimg_library::log().
Referenced by lux::MetropolisSampler::GetNextSample().
1.5.9