This commit is contained in:
Jordan Cristiano 2013-06-28 08:41:11 -07:00
commit 6515b8ecd5
6 changed files with 6 additions and 6 deletions

Binary file not shown.

View file

@ -14,9 +14,9 @@ HaltonSequenceGenerator_t::HaltonSequenceGenerator_t(int b)
}
float HaltonSequenceGenerator_t::GetElement(int elem)
float HaltonSequenceGenerator_t::GetElement(int elem) const
{
int tmpseed=seed;
int tmpseed=elem;
float ret=0.0;
float base_inv=1.0/fbase;
while(tmpseed)

View file

@ -30,7 +30,7 @@ class HaltonSequenceGenerator_t
public:
HaltonSequenceGenerator_t(int base); //< base MUST be prime, >=2
float GetElement(int element);
float GetElement(int element) const;
inline float NextValue(void)
{

Binary file not shown.

View file

@ -14,9 +14,9 @@ HaltonSequenceGenerator_t::HaltonSequenceGenerator_t(int b)
}
float HaltonSequenceGenerator_t::GetElement(int elem)
float HaltonSequenceGenerator_t::GetElement(int elem) const
{
int tmpseed=seed;
int tmpseed=elem;
float ret=0.0;
float base_inv=1.0/fbase;
while(tmpseed)

View file

@ -30,7 +30,7 @@ class HaltonSequenceGenerator_t
public:
HaltonSequenceGenerator_t(int base); //< base MUST be prime, >=2
float GetElement(int element);
float GetElement(int element) const;
inline float NextValue(void)
{