#include <mitsuba/mitsuba.h>
Go to the source code of this file.
|
| template<typename Scalar , typename QuantizedScalar , typename Index > |
| float | mitsuba::math::makeAliasTable (AliasTableEntry< QuantizedScalar, Index > *tbl, Scalar *pmf, Index size) |
| | Create the lookup table needed for Walker's alias sampling method implemented in sampleAlias(). Runs in linear time. More...
|
| |
| template<typename Scalar , typename QuantizedScalar , typename Index > |
| Index | mitsuba::math::sampleAlias (const AliasTableEntry< QuantizedScalar, Index > *tbl, Index size, Scalar sample) |
| | Generate a sample in constant time using the alias method. More...
|
| |
| template<typename Scalar , typename QuantizedScalar , typename Index > |
| Index | mitsuba::math::sampleAliasReuse (const AliasTableEntry< QuantizedScalar, Index > *tbl, Index size, Scalar &sample) |
| | Generate a sample in constant time using the alias method. More...
|
| |
| #define __MITSUBA_CORE_PMF_H_ |