Jonathan Olmsted

RcppTN v0.1-3

| Comments

With the release of RcppTN version 0.1-3 (see https://github.com/olmjo/RcppTN), the RcppTN package has reached a new level of feature complete-ness (which is not to say it’s complete). Installation instructions are on the github page.

Features

  • Fast R-level RNG from arbitrary Truncated Normal distributions (respecting R’s RNG seed).
  • Calculation of expectations and variances for arbitrary Truncated Normal distributions.
  • And, most importantly, the same functionality is exposed at the C++ level.

More Detail

From NEWS:

plain
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
RcppTN 0.1-3
------------

* Added etn() function for calculation of
  theoretical expectations from Truncated Normal distributions.
* The rtn() function warns on NA return values.
* Checks for valid inputs include a finite mean and finite sd of the
  parent Normal distribution. Warns on invalid.
* Checks for correctly sized inputs. Stops on invalid.
* Added vtn() function for calculation of
  theoretical variances from Truncated Normal distributions.

RcppTN 0.1-2
------------

* The rtn() function checks for valid inputs and returns NA for bad inputs.

RcppTN 0.1-0
------------

* initial public release
<div class='bogus-wrapper'><notextile><figure class='code'><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
<span class='line-number'>2</span>
</pre></td><td class='code'><pre><code class=''><span class='line'>
</span><span class='line'>From `ChangeLog`:
</span></code></pre></td></tr></table></div></figure></notextile></div>
2013-12-04 Jonathan Olmsted <jpolmsted@gmail.com>
  * src/vtn1.cpp, src/vtn.cpp, src/vtnRcpp.cpp, R/vtn.R: Add
  variance calculation functionality.
  * R/rtn.R, R/etn.R: Errors on wrongly sized inputs.
  * src/rtnRcpp.cpp: Memory bug-inducing scope issue fixed.
  * src/check1.cpp: Parens added for compiler happiness.

2013-12-02  Jonathan Olmsted <jpolmsted@gmail.com>

  * DESCRIPTION: version 0.1-3
  * R/rtn.R: R warning on NA return values. Negligible effect on
  performance.
  * R/check1.cpp: Check for finite mean. Check for finite sd.
  * src/etn.cpp: Add expectation calculation at the C++ level.
  * R/etn.R: Add expectation calculation at the R level.

2013-11-27  Jonathan Olmsted <jpolmsted@gmail.com>

  * ChangeLog: ChangeLog added. Previous changes not explicitly
  documented beyond commits.
  * src/rtn.cpp: rtn() checks for valid inputs and returns NA_REAL
  for invalid inputs.
  * vignettes/using.Rnw: shows new NA return values.
  * DESCRIPTION: version 0.1-2

Comments