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:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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

From ChangeLog:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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