Latin Hypercube Samples (lhs)
1.0
R, C++, and Rcpp code to generate Latin hypercube samples
RStandardUniform.h
Go to the documentation of this file.
1
21
#ifndef RSTANDARDUNIFORM_H
22
#define RSTANDARDUNIFORM_H
23
24
#include <Rcpp.h>
25
#include "
CRandom.h
"
26
27
namespace
lhs_r
28
{
32
class
RStandardUniform
:
public
bclib::CRandom
<double>
33
{
34
public
:
39
double
getNextRandom
()
40
{
41
return
Rcpp::as<double>(Rcpp::runif(1));
42
};
43
};
44
}
45
46
#endif
/* RSTANDARDUNIFORM_H */
47
CRandom.h
lhs_r::RStandardUniform::getNextRandom
double getNextRandom()
Definition:
RStandardUniform.h:39
bclib::CRandom
Definition:
CRandom.h:53
lhs_r
Definition:
lhs_r_utilities.cpp:24
lhs_r::RStandardUniform
Definition:
RStandardUniform.h:33
src
RStandardUniform.h
Generated by
1.8.20