NEWS | R Documentation |
NEWS file for the Delaporte package
Version 8.4.1 (2024-06-17)
Changed
Testing for
NaN
within Fortran now more efficient.Other changes to C and Fortran code for efficiency and readability.
Added package metadata tests.
Set up new version of rhub checking.
Use native CRAN DOI.
Version 8.4.0 (2024-04-04)
Changed
-
qdelap
now automatically calls theexact = TRUE
version when passed inappropriate parameters instead of just stopping with an error. Refactor ‘README.md’ into component MD files for Github purposes.
Capture and restore original thread count after running tests.
Efficiency tweaks to underlying Fortran code.
Version 8.3.0 (2023-10-02)
Changed
Converted
log1p
implementation to one based on its Taylor sequence, instead of catastrophic substitution elimination, as some compilers may optimize out that subtraction. Since any difference in result should be at machine precision or lower, this is considered a minor update.Removed
back
keyword fromminloc
call in the Fortran implementation ofqdelap
. Technically uneeded since its value is the defaultFALSE
. This allows for systems with an only partial implementation of Fortran 2008 to compile (see Issue 3 and thanks to David Pascall).Correct error message of
setDelapThreads
to reflect that setting threadcount to 0 is also an error. Functionality has not changed.Removed unnecessary explicit check for
NaN
inqdelap
as it will be covered by check usinganyNA
.Tweaked documentation for clarity.
Added
Added unit test for new
log1p
function.Added
LTO_OPT
andLTO_FC_OPT
flags to ‘Makevars’.
Version 8.2.0 (2023-08-08)
Added
Added
getDelapThreads
andsetDelapThreads
to explicitly control OpenMP thread usage based on WRE 1.2.1.1.Added parallel as an import for
detectCores
.Added SPDX header to more files.
Added more unit tests.
Changed
Changed Fortran suffix to
.f90
for better compatibility with the Intel Fortran compiler, per CRAN.Tweaked minor linting and documentation issues.
Explicitly enumerated exports instead of using wide-ranging regex.
Version 8.1.1 (2023-06-19)
Changed
Removed
-std=f2008
on the advice of Professor Ripley.
Version 8.1.0 (2023-02-01)
Changed
Fortran source code now reliant on Fortran 2008.
Fortran module
ieee_arithmetic
used.Updated help documentation.
Updated Github actions.
Updated internal code to be more compliant with personal style guide.
Updated CITATION to use
bibentry
per CRAN request.
Removed
-
gamln
replaced with Fortran 2008log_gamma
. -
position
replaced with Fortranminloc
. The
set_nan
andset_inf
procedures were replaced withieee_arithmetic
calls.Checks for
NaN
now useieee_arithmetic
calls.
Version 8.0.3 (2022-09-05)
Changed
Updated package with information necessary to acheive OpenSSF silver status.
Version 8.0.2 (2021-01-20)
Changed
Converted unit testing framework to tinytest to reduce dependencies.
Augmented citation with DOI and CFF file.
Fixed
Corrected help file.
Version 8.0.1 (2021-01-10)
Removed
Removed SIMD calls added in 8.0.0 due to Solaris.
Removed LTO mentions from Makevars added in 8.0.0 per Brian Ripley.
Changed
Pass more R-consistent error messages.
Made more robust to improper inputs such as negative,
NA
, orNaN
parameters or passed values.R versions of
qdelap
andrdelap
behave more like the Fortran versions.
Version 8.0.0 (2021-01-05) [YANKED]
Changed
Exact code more in line with R defaults for d/p/q/r functions in that
NaN
inputs returnNaN
outputs.Handling of
Inf
and-Inf
now more in line with R defaults for d/p/q/r functions.Parameter errors now check for
< 0
instead of< EPS
.-
ddelap
andpdelap
now use 8-byte integers (INT64) for their counters which allows calculation for values up to2^{63}
.-
ddelap
will return 0 for all values> 2^{63}
under the assumption that the PMF is spread too thinly. -
pdelap
will not run for values> 2^{63}
. -
ddelap
ofInf
returns 0 andpdelap
ofInf
returns 1.
-
-
pdelap
gives a warning for finite values> 2^{15}
as, depending on the parameters, this may take hours to finish (it's a double summation!). The user has to respond with y to continue. Updated help and tests.
Allow compiler to use OpenMP SIMD constructs.
Allow using LTO.
Switched continuous integration from Travis/Appveyor to Github actions (thanks to Jim Hester for his help in fixing the coverage check issue).
Version 7.0.5 (2020-11-10)
Fixed
Corrected CRAN requests.
Cleaned up NEWS.
Version 7.0.4 (2020-11-08)
Changed
Converted tests to be compliant with testthat: 3rd edition.
Cleaned up prose.
Added
Added a citation to DESCRIPTION.
Added a test to increase code coverage.
Version 7.0.3 (2020-06-01)
Added
CITATION file.
Explicit citation information to README.
Travis, AppVeyor, and CodeCov integration.
Added
R_forceSymbols(dll, TRUE)
to source per WRE 5.4.Tests for package versioning.
Changed
Moved canonical repository to Github.
Use
FFLAGS
instead ofFCFLAGS
in Makevars.
Removed
Removed depsy badge from README as site is now defunct.
Version 7.0.2 (2019-05-17)
Changed
Updated NEWS to reflect recent changes.
Updated various file versions to reflect recent changes.
Version 7.0.1 (2019-04-26)
Changed
Makevars adjusted by CRAN to prevent issues with parallel make.
Version 7.0.0 (2019-02-12)
Changed
Changed Makevars flags and targets and forced dependance on R 3.6+ to comply with new CRAN policies on Fortran and OpenMP.
Preventing spurious floating point errors by implementing hard floor of 0 and hard ceiling of 1.
Updated comments in ‘delaporte.f95’ source code.
Changed
rdelap
testing to always use a fixed seed.Documentation cleaned up.
Removed
Removed the
cleanzeros
function.Removed unneeded Makevars target
cleanup
.Removed GNU-specific Makevars target
.NOTPARALLEL
.
Version 6.3.0 (2018-11-21)
Added
Added
cleanzeros
function that zaps to 0 any value less than or equal to EPS (thanks Kipper Fletez-Brant).Test for zeros (thanks Kipper Fletez-Brant).
Added items to README to comply with CII best practices and added badge.
Added various badges to README.
Added copyright and license information inside R source code file.
Version 6.2.0 (2018-06-22)
Added
-
MoMdelap
now allows a skewtype
selection, similar to that of the skewness function in the e1071 package (thanks to William Cipolli for the suggestion). Skew defaults to former selection so there should be no change to any values. Tests added for all three skewness variants.
-
ORCID added to author description.
Copyright date corrected to reflect actual copyright and not date of licensure change.
Version 6.1.0 (2017-08-13)
Fixed
There was an error in the calculation of
beta
, and thus all three parameters, inMoMdelap
(thanks to William Cipolli).
Version 6.0.0 (2017-03-31)
Fixed
The approximate version of
qdelap
was not correct. It pooled together ALL generated random variables. As it is impractical to generate millions of random variates for each unique parameter triplet, the functionality was changed so that only the “exact” version ofqdelap
may be used if any of the parameters are a vector.
Changed
In the continued struggle to have the package pass all its tests on Solaris SPARC, all logicals needing to be passed to Fortran are now passed as integers and not booleans. While all other platforms had no problem using Fortran 2003's ISO_C_bindings, Solaris SPARC did.
Added
Added note to README about Solaris SPARC.
More tests including for singleton approximate
qdelap
.
Removed
Older implementation of
qdelap
andrdelap
approximations are now completely removed from code and documentation.
Version 5.0.1 (2017-03-05)
Changed
Solaris, being big-endian, appears unable to use the same bit-mask transfer for
NaN
andInf
as any other R platform. Therefore, the package has to revert to calling C to call the R magic words which should recognize the platform.
Version 5.0.0 (2017-03-05)
Changed
Changed handling of non-integers to be in line with R convention that they have 0 probability instead of being considered the next integer.
ddelap
will return 0 for each non-integral value and will pass one warning, unlike base R which passes one warning per non-integral value.qdelap
will just return the value for the last integer and no warnings, similar to base R.Use bit-representation of
NaN
andInf
to remove need to call C for setting these values. This allows the log-gamma and singleton d/p/qdelap functions to be elemental.Changed registration of the C SEXP functions seen by the package to use
R_CallMethodDef
as now preferred by CRAN.Explicitly listed the five C SEXP functions seen by the package as
R_RegisterCCallable
for potential downstream package use.Corrected some prose in documentation page.
Older NEWS entries refactored for accuracy.
Fixed
Explicitly cast
n
as an integer in loggamma routine. This should suppress warning on OSX mavericks.
Removed
Older implementation of
qdelap
andrdelap
approximations is now defunct. Only the new faster approximation based on section 3.9 of Karlis & Xekalaki (2005) remains. The next minor version may remove the.Defunct
calls and the references to the old version in the documentation.Removed
colClasses = 'double'
from tests. This should solve Sun SPARC issues (It didn't).
Added
Specified, clarified, and added many more unit tests.
Version 4.0.3 (2017-01-30)
Changed
Back end code ported from C++ & Rcpp to Fortran and C. In most cases this alone showed an increase in speed. There should be no noticeable difference in results. Random numbers generated with the same seeds should be the same as in previous packages.
OpenMP calls activated for systems which have it which allows parallel processing of certain loops resulting in further speed increases over and above those supplied by Fortran. OpenMP compatibility is approximately version 3.1; no SIMD instructions are used.
License changed from GPL2+/LGPL3+ to BSD-2 clause.
Fixed
Includes various emergency fixes to address parallel make and other compilation issues in versions 4.0.0–4.0.2.
Version 4.0.2 (2017-01-30) [YANKED]
Did not build properly on some systems using a parallel make.
Version 4.0.1 (2017-01-30) [YANKED]
Did not build properly on Fedora using Clang.
Version 4.0.0 (2017-01-29) [YANKED]
Did not build properly on various platforms such as Fedora and Solaris.
Version 3.0.0 (2016-07-19)
Changed
The distributional functions now return
NaN
where the passedalpha
,beta
, orlambda
is close to 0 (less than machine epsilon). Within vectors, valid triplets should still return proper values. The approximate versions ofqdelap
andrdelap
do not handle 0 properly, and an error is thrown directing the user to the exact version (thanks are due to Jonathan Cairns and Jin-Rui Xu for their help in testing).
Added
Faster versions of the approximate
qdelap
andrdelap
have been implemented.Tests for near 0 handling on exact version.
Deprecated
The old approximation versions of
qdelap
andrdelap
can still be used by passingold = TRUE
. This will be removed eventually.
Version 2.3.1 (2016-06-16)
Changed
Reverted back to 2.2-3 as change to trapping zeros caused serious downstream issues. Will work on more elegant correction shortly (thanks to Mikhail Spivakov, Jonathan Cairns, and Jin-Rui Xu).
Version 2.3.0 (2016-06-02)
Deprecated
In the next release (3.0.0), passing
FALSE
toexact
inrdelap
andqdelap
will use the method described in section 3.9 of Karlis & Xekalaki (2005) to generate approximately Delaporte random variates much more quickly for largen
and large values of the parameters. However, when implemented, this will break reproducible even for specifically set seeds. The new code is commented out in the function.
Changed
Change non-exact
qdelap
mode to numeric instead of integer to handle returnedInf
.Refactor NEWS to more closely comply with keep a changelog suggestions.
Fixed
Check for any parameters not strictly greater than 0 (thanks to Mikhail Spivakov and Jonathan Cairns).
Version 2.2-3 (2015-06-30)
Fixed
Explicitly import code from package
stats
.Updated code in unit tests to reflect change in testthat package (move to
expect_equal
).Minor tweaks to prose and grammar and expanded description.
Version 2.2-2 (2014-12-04)
Fixed
Updated DESCRIPTION file to comply with recent changes.
Version 2.2-1 (2014-09-24)
Fixed
Trapped machine precision issues when calling right-tailed version of cumulative distribution function (thanks to Mikhail Spivakov and Jonathan Cairns).
Update documentation to reflect rounding procedure when non-integer passed as value.
Version 2.2-0 (2014-07-15)
Added
Vectorized
d/p/q/rdelap
;alpha
,beta
, andlambda
can now be vectors.Added more robust tests.
Minor optimizations for speed.
Fixed
Corrected
lower.tail
andlog.p
which were not implemented properly.
Version 2.1-1 (2014-04-07)
Fixed
Adjusted unit test so it can be run more easily on 32 bit machine with limited memory.
Fixed spelling and other prose.
Version 2.1-0 (2014-04-06)
Added
Added function to calculate method of moments estimates for the parameters. These estimates should also serve as good starting points for maximum likelihood estimation.
Added unit testing.
Version 2.0-1 (2014-02-05)
Changed
Minor cleanup after Rcpp update (remove ‘Makevar’ files and tweak documentation).
Version 2.0-0 (2014-02-05)
Changed
Updating for changes made to Rcpp 0.11.0. Previous versions may no longer compile properly and the current version may no longer work with older versions of Rcpp.
Version 1.1-0 (2014-01-17)
Changed
Change “Depends” to “LinkingTo” in line with CRAN philosophy on package dependencies.
Update documentation to give rough estimate as to when
exact = FALSE
should be used (rarely).Have R code be written in a consistent style.
Version 1.0-1 (2013-09-01)
Changed
Update README now that CRAN uses it as well.
Minor grammar and typography tweaks to documentation.
Version 1.0-0 (2013-07-09)
Added
Poisson-negative binomial approximation to quantile and random variate functions. This greatly speeds up calculation for large
\alpha, \beta
, or\lambda
.
Version 0.1-2 (2013-04-10)
Added
Converted NEWS to NEWS.Rd.
Added repository and bug report URL to DESCRIPTION.
Fixed
Help documentation corrections, comments, and tweaks.
Version 0.1-1 (2013-04-08)
Initial version.