NEWS


twosamples 2.0.1 (2023-06-23)

This update contains two minor bugfixes.

  1. Some of the unit tests use random numbers, one of those unit tests looking at the function combine.twosamples failed to consider default (desired) behavior for some possible values of those random numbers, and would occasionally fail. This was a minor issue that would not negatively impact any users, except that it would occasionally cause a CRAN check to fail, which could cause trouble. This update aims to fix the test, leaving all actual functionality unchanged, so that there should not be further CRAN check failures from this issue.
  2. Removed "C++11" from "System Requirements" -- as per current CRAN guidelines. The presence of C++11 as a requirement caused a note for R-CMD-Check in R4.3.0 and up. Currently, the lack of such a requirement does not affect compilation on any tested systems.

twosamples 2.0.0 (2022-07-12)

This is a large update. Three big changes:

  1. Substantial speed improvements -- should improve both absolute speed and scaling
  2. Added generics for plot, summary, print.
  3. Switched from the package Rcpp to cpp11 for the backend. This removes a runtime dependency on Rcpp, but adds one on C++11 and adds a compile time dependency on cpp11.

Together, all this lead to many changes under the hood. As a consequence, permutation_test_builder is substantially different (and no longer exported), and order_stl no longer exists.

Speed

Each run of a *_test function now only sorts the data one time. Denoting the joint sample size N and the number of bootstraps K, this update moves the code from $O(KN\log(N))$ to $O(KN)+O(N \log(N))$.

Classes

There is now a 'twosamples' class, and generics for print, summary, and plot, as well as a function for combining outputs correctly. This should make the printed behavior much better. As well as making it easy to see a fair bit of information using summary.

Possible breaking changes

twosamples 1.2.0 (2022-06-06)

This version is primarily bug fixes and documentation updates. These bug fixes may affect outputs users see.

Summary

I expect this update to be purely cosmetic for the vast majority of users.

Main code changes:

Some documentation changes:

Some development oriented changes:

twosamples 1.1.1 (2020-07-19)

This update is only fixing up documentation. Fixes a bug that lead to poor formatting, improves formatting of equations, adds graphs for test statistics, adds links between help pages. See v1.1.0 for recent improvements to codebase.

twosamples 1.1.0 (2020-07-14)

This update is primarily fixing a bug which meant that the test stat sorting routine was O(N^2), not O(Nlog(N)).

Major Updates

Minor Updates

twosamples 1.0.0 (2018-12-03)

The package has been released. The package includes test statistic functions (written in C++) for the following two-sample distance measures:

Each test statistic also has a corresponding permutation test function.

In addition there are two functions: