PICCANTE  0.4
The hottest HDR imaging library!
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes | List of all members
pic::pic::RandomSampler< N > Class Template Reference

The RandomSampler class. More...

#include <display.hpp>

Public Member Functions

 RandomSampler ()
 RandomSampler. More...
 
 RandomSampler (SAMPLER_TYPE type, Vec< N, int > window, int nSamples, int nLevels, unsigned int seed)
 RandomSampler. More...
 
void update (SAMPLER_TYPE type, Vec< N, int > window, int nSamples, int nLevels)
 update More...
 
void render2Int ()
 render2Int More...
 
void wrap (float alpha)
 wrap More...
 
void cutRescale (unsigned int cutDim)
 cutRescale More...
 
int getSamplesPerLevel (int level)
 getSamplesPerLevel More...
 
void getSampleAt (int level, int i, int &x, int &y)
 getSampleAt More...
 
void Write (std::string name, int level)
 Write. More...
 

Static Public Member Functions

static void generateFigureRS (std::string nameOut, SAMPLER_TYPE type, int window, int nSamples, int nLevels)
 generateFigureRS More...
 
static void Generate (SAMPLER_TYPE type, int window)
 Generate. More...
 

Public Attributes

std::vector< float > samples
 
std::vector< int > samplesR
 
std::vector< int > levels
 
std::vector< int > levelsR
 
Vec< N, int > window
 
int nSamples
 

Protected Attributes

SAMPLER_TYPE type
 
std::mt19937 * m
 
std::set< int > track
 

Detailed Description

template<unsigned int N>
class pic::pic::RandomSampler< N >

The RandomSampler class.

Constructor & Destructor Documentation

◆ RandomSampler() [1/2]

template<unsigned int N>
pic::pic::RandomSampler< N >::RandomSampler ( )
inline

◆ RandomSampler() [2/2]

template<unsigned int N>
PIC_INLINE pic::pic::RandomSampler< N >::RandomSampler ( SAMPLER_TYPE  type,
Vec< N, int >  window,
int  nSamples,
int  nLevels,
unsigned int  seed 
)

RandomSampler.

Parameters
type
window
nSamples
nLevels

Member Function Documentation

◆ cutRescale()

template<unsigned int N>
PIC_INLINE void pic::pic::RandomSampler< N >::cutRescale ( unsigned int  cutDim)

cutRescale

Parameters
cutDim

◆ Generate()

template<unsigned int N>
static void pic::pic::RandomSampler< N >::Generate ( SAMPLER_TYPE  type,
int  window 
)
inlinestatic

Generate.

Parameters
type
window

◆ generateFigureRS()

template<unsigned int N>
static void pic::pic::RandomSampler< N >::generateFigureRS ( std::string  nameOut,
SAMPLER_TYPE  type,
int  window,
int  nSamples,
int  nLevels 
)
inlinestatic

generateFigureRS

Parameters
nameOut
type
window
nSamples
nLevels

◆ getSampleAt()

template<unsigned int N>
PIC_INLINE void pic::pic::RandomSampler< N >::getSampleAt ( int  level,
int  i,
int &  x,
int &  y 
)

getSampleAt

Parameters
level
i
x
y

◆ getSamplesPerLevel()

template<unsigned int N>
PIC_INLINE int pic::pic::RandomSampler< N >::getSamplesPerLevel ( int  level)

getSamplesPerLevel

Parameters
level
Returns

◆ render2Int()

template<unsigned int N>
PIC_INLINE void pic::pic::RandomSampler< N >::render2Int ( )

render2Int

◆ update()

template<unsigned int N>
PIC_INLINE void pic::pic::RandomSampler< N >::update ( SAMPLER_TYPE  type,
Vec< N, int >  window,
int  nSamples,
int  nLevels 
)

update

Parameters
type
window
nSamples
nLevels

◆ wrap()

template<unsigned int N>
PIC_INLINE void pic::pic::RandomSampler< N >::wrap ( float  alpha)

wrap

Parameters
alpha

◆ Write()

template<unsigned int N>
PIC_INLINE void pic::pic::RandomSampler< N >::Write ( std::string  name,
int  level 
)

Write.

Parameters
name
level

Member Data Documentation

◆ levels

template<unsigned int N>
std::vector<int> pic::pic::RandomSampler< N >::levels

◆ levelsR

template<unsigned int N>
std::vector<int> pic::pic::RandomSampler< N >::levelsR

◆ m

template<unsigned int N>
std::mt19937* pic::pic::RandomSampler< N >::m
protected

◆ nSamples

template<unsigned int N>
int pic::pic::RandomSampler< N >::nSamples

◆ samples

template<unsigned int N>
std::vector<float> pic::pic::RandomSampler< N >::samples

◆ samplesR

template<unsigned int N>
std::vector<int> pic::pic::RandomSampler< N >::samplesR

◆ track

template<unsigned int N>
std::set<int> pic::pic::RandomSampler< N >::track
protected

◆ type

template<unsigned int N>
SAMPLER_TYPE pic::pic::RandomSampler< N >::type
protected

◆ window

template<unsigned int N>
Vec<N, int> pic::pic::RandomSampler< N >::window

The documentation for this class was generated from the following files: