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) 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-11-03 13:14:01 UTC; root Author: Thom Volker [aut, cre] (ORCID: ), Carlos Gonzalez Poses [ctb], Erik-Jan van Kesteren [ctb] Maintainer: Thom Volker Repository: https://cran.r-universe.dev Date/Publication: 2026-07-14 15:05:51 UTC RemoteUrl: https://github.com/cran/densityratio RemoteRef: HEAD RemoteSha: 1d8aa62003b4847b2eddff2c6ec7d4394d318ef0