Package: densityratio
Type: Package
Title: Distribution Comparison Through Density Ratio Estimation
Version: 0.2.3
Authors@R: c(
    person("Thom", "Volker", 
    email = "thombenjaminvolker@gmail.com", 
    role = c("aut", "cre"),
           comment = c(ORCID = "0000-0002-2408-7820")),
    person("Carlos", "Gonzalez Poses", role = "ctb"), 
    person("Erik-Jan", "van Kesteren", role = "ctb"))
Description: Fast, flexible and user-friendly tools for distribution comparison
  through direct density ratio estimation. The estimated density ratio can be 
  used for covariate shift adjustment, outlier-detection, change-point detection,
  classification and evaluation of synthetic data quality. The package implements
  multiple non-parametric estimation techniques (unconstrained least-squares
  importance fitting, ulsif(), Kullback-Leibler importance estimation procedure,
  kliep(), spectral density ratio estimation, spectral(), kernel mean matching,
  kmm(), and least-squares hetero-distributional subspace search, lhss()).
  with automatic tuning of hyperparameters. Helper functions are available for
  two-sample testing and visualizing the density ratios. For an overview on 
  density ratio estimation, see Sugiyama et al. (2012) <doi:10.1017/CBO9781139035613>
  for a general overview, and the help files for references on the specific 
  estimation techniques.
License: GPL (>= 3)
Encoding: UTF-8
LazyData: true
Imports: osqp, Rcpp, pbapply, ggplot2, ggh4x
LinkingTo: Rcpp, RcppArmadillo, RcppProgress
Suggests: RcppArmadillo, knitr, rmarkdown, testthat (>= 3.0.0)
Config/testthat/edition: 3
Depends: R (>= 2.10)
RoxygenNote: 7.3.3
VignetteBuilder: knitr
URL: https://thomvolker.github.io/densityratio/,
        https://github.com/thomvolker/densityratio
BugReports: https://github.com/thomvolker/densityratio/issues
NeedsCompilation: yes
Packaged: 2026-07-14 12:48:12 UTC; 5868777
Author: Thom Volker [aut, cre] (ORCID: <https://orcid.org/0000-0002-2408-7820>),
  Carlos Gonzalez Poses [ctb],
  Erik-Jan van Kesteren [ctb]
Maintainer: Thom Volker <thombenjaminvolker@gmail.com>
Repository: CRAN
Date/Publication: 2026-07-14 13:30:02 UTC
Built: R 4.5.3; x86_64-w64-mingw32; 2026-08-24 03:26:31 UTC; windows
Archs: x64
