Skip to content

v0.2.7

Compare
Choose a tag to compare
@JackEdTaylor JackEdTaylor released this 28 Apr 17:29
· 61 commits to master since this release

Major updates:

  • Fixed the calculation of weighted Euclidean distance. Previous versions would have calculated the distance of weighted items from unweighted targets, rather than comparing the items and target in the same space. This has been fixed, and will change the results of any code using weights in euc_dists() or control_for_euc().
  • Implemented weighting standardisation in calculating Euclidean distances, so that c(1, 3), c(10, 30), and c(100.33, 300.99) are all equivalent to c(0.5, 1.5). This means that similar tolerances can be used when weighting schemes change. The standardisation is weights/mean(weights) so that sum(weights)==length(weights). Standardisation can be disabled by setting standardise_weights=FALSE.

Minor updates:

  • Updated the Euclidean distance vignette to reflect the changes made to weighting.
  • Added tests that weights and weight standardisation for Euclidean distance work as described.