xo-distribution: bugfix: xo::ref::rp -> xo::rp
This commit is contained in:
parent
eca5806575
commit
5d80fa4499
2 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ namespace xo {
|
|||
Normal() = default;
|
||||
|
||||
/* N(0,1): mean 0, sdev 1 */
|
||||
static ref::rp<Normal> unit() { return new Normal(); }
|
||||
static rp<Normal> unit() { return new Normal(); }
|
||||
|
||||
/* normal probability density:
|
||||
*
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ namespace xo {
|
|||
public:
|
||||
Uniform(double lo, double hi) : lo_(lo), hi_(hi) {}
|
||||
|
||||
static ref::rp<Uniform> unit() { return new Uniform(0.0, 1.0); }
|
||||
static rp<Uniform> unit() { return new Uniform(0.0, 1.0); }
|
||||
|
||||
static double density_impl(double lo, double hi, double x) {
|
||||
if (x <= lo)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue