You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: inst/doc/rust-using-rcpp-vignette.Rmd
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,10 @@ in order that they can create an external pointer for `new_name` using `create_x
90
90
91
91
All the examples in the documentation for `ru` are replicated in the documentation for `ru_rcpp`. Here we consider a subset of the examples from the [Introducing rust](rust-vignette.html) vignette, to illustrate how to provide user-supplied C++ functions to `ru_rcpp` and to compare the performances of `ru` and `ru_rcpp`.
<spanclass="co">#> expr min lq mean median uq max neval</span>
204
-
<spanclass="co">#> old 32.520 33.740 36.374008 34.950 39.080 58.950 100</span>
205
-
<spanclass="co">#> new 2.375 2.539 2.798837 2.707 2.841 8.223 100</span></code></pre></div>
203
+
<spanclass="co">#> expr min lq mean median uq max neval</span>
204
+
<spanclass="co">#> old 31.990 33.470 37.498158 34.09 38.110 174.900 100</span>
205
+
<spanclass="co">#> new 2.442 2.576 2.740526 2.70 2.763 7.146 100</span></code></pre></div>
206
206
<p>As we would hope, <code>ru_rcpp</code> is faster than <code>ru</code>. If we start from the same random number seed we get the same simulated values from <code>ru</code> and <code>ru_rcpp</code>.</p>
207
207
</div>
208
208
<divid="mvn" class="section level3">
@@ -241,9 +241,9 @@ <h3>Multivariate normal density</h3>
Copy file name to clipboardExpand all lines: inst/doc/rust-vignette.Rmd
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,10 @@ For a review of Bayesian extreme value modelling see @Stephenson2016 and for an
105
105
106
106
We simulate some data from a GP(1, -1/2) distribution. We choose $\xi=-1/2$ because this tends to result in a posterior distribution with strong negative posterior association between $\sigma$ and $\xi$, making the benefit of transformation more apparent. We also calculate some sample properties that feature in the likelihood, so that they can be passed to the log-density `logf` rather than being recalculated, and set an initial estimate at which `logf` is positive.
Copy file name to clipboardExpand all lines: vignettes/rust-using-rcpp-vignette.Rmd
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -90,6 +90,10 @@ in order that they can create an external pointer for `new_name` using `create_x
90
90
91
91
All the examples in the documentation for `ru` are replicated in the documentation for `ru_rcpp`. Here we consider a subset of the examples from the [Introducing rust](rust-vignette.html) vignette, to illustrate how to provide user-supplied C++ functions to `ru_rcpp` and to compare the performances of `ru` and `ru_rcpp`.
Copy file name to clipboardExpand all lines: vignettes/rust-vignette.Rmd
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,10 @@ For a review of Bayesian extreme value modelling see @Stephenson2016 and for an
105
105
106
106
We simulate some data from a GP(1, -1/2) distribution. We choose $\xi=-1/2$ because this tends to result in a posterior distribution with strong negative posterior association between $\sigma$ and $\xi$, making the benefit of transformation more apparent. We also calculate some sample properties that feature in the likelihood, so that they can be passed to the log-density `logf` rather than being recalculated, and set an initial estimate at which `logf` is positive.
0 commit comments