Skip to content

Commit

Permalink
version 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
yrobink authored and cran-robot committed Apr 10, 2021
0 parents commit 3fd8fa0
Show file tree
Hide file tree
Showing 81 changed files with 10,255 additions and 0 deletions.
674 changes: 674 additions & 0 deletions COPYING

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Package: SBCK
Type: Package
Title: Statistical Bias Correction Kit
Version: 0.3.1
Date: 2021-03-31
Authors@R: c( person("Yoann" , "Robin", email = "yoann.robin.k@gmail.com" , role = c("aut", "cre")),
person("Mathieu", "Vrac" , email = "mathieu.vrac@lsce.ipsl.fr", role = c("cph")) )
Description: Implementation of several recent multivariate bias correction
methods with a unified interface to facilitate their use. A
description and comparison between methods can be found in François
et al, (2020) <doi:10.5194/esd-11-537-2020>.
URL: https://github.com/yrobink/SBCK
Depends: R (>= 3.3)
License: GPL-3
Encoding: UTF-8
LazyData: false
NeedsCompilation: yes
Imports: Rcpp, methods, R6, ROOPSD
LinkingTo: Rcpp, RcppEigen
RcppModules: SBCK_cpp
RoxygenNote: 7.1.1
Packaged: 2021-04-09 08:45:45 UTC; yrobin
Author: Yoann Robin [aut, cre],
Mathieu Vrac [cph]
Maintainer: Yoann Robin <yoann.robin.k@gmail.com>
Repository: CRAN
Date/Publication: 2021-04-10 08:00:08 UTC
80 changes: 80 additions & 0 deletions MD5
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
1ebbd3e34237af26da5dc08a4e440464 *COPYING
b73ffddee03255680fd79b723af52633 *DESCRIPTION
330a636df9722f12d454654f63fd4e8a *NAMESPACE
bef4fef8bf2e237233ecef5c77df4f0a *R/RcppExports.R
15fce5793ce48e65b8f73d0fa36db3f5 *R/SBCK.R
b8569362a1caf60c1d1d610dfc779d07 *R/bc.CDFt.R
2239cf774d90fe17619a7eaacfe2511d *R/bc.ECBC.R
b2ed9de5082c2496d99522c059f7d5f6 *R/bc.MBCn.R
a77fdc2f27965e13805eaa9a7db4ec87 *R/bc.MRec.R
0417425ab8a0f60e55d3102457049aaf *R/bc.OTC.R
571ef1cc44e4735b09b1787cb2c493d0 *R/bc.QDM.R
1eaa413d5f36021fdbf49017bab0b1ef *R/bc.QM.R
73ffc777f3a6b127892ca36940742355 *R/bc.QMrs.R
a964a907e38dd1b1b5eeae2fad779c78 *R/bc.R2D2.R
5729383c60083066a3dcbd2518b03109 *R/bc.RBC.R
8d2549193672a70bdfde38756b4c4913 *R/bc.dOTC.R
49aeba46a60f5ae07f1d12d1740ca229 *R/datasets.multivariates.R
b711808089f39e1032c21651e3e4b74d *R/datasets.univariates.R
ebbebfd411d0845178e2d520757f560b *R/metrics.chebyshev.R
1f1759505716e230f847445bb6af4dd0 *R/metrics.energy.R
f4c25074d664180338149fb35793ce0c *R/metrics.euclidean.R
8dcc592000a1a3c67ebd7d0fa2143e09 *R/metrics.manhattan.R
5a057a8bb4babd0937284854d4b6f4e0 *R/metrics.minkowski.R
17be962d69583072e7e8d457381e37cd *R/metrics.wasserstein.R
0076a3fee38e56195812f7143153f92c *R/tools.DistHelper.R
743e158bdcd75dd7e3bbf5b5bc501338 *R/tools.OTHist.R
e193eee550ec379c0e063623f6e7bbbc *R/tools.OTNetworkSimplex.R
3fdef89b89a7f51e40728d26cb635e5d *R/tools.Pairwise_distances.R
85837be84b1f1374e7ad7cd90f4b9efd *R/tools.SparseHist.R
97b1ccb74138fe8cb696126fc286f684 *R/tools.StoppingCriteria.R
cc3d7fb627d1f476b47ea3a37507a086 *R/tools.bin_width_estimator.R
5889d801b811684abbd35930b9e80030 *R/tools.data_to_hist.R
d6f21ec79f696526f4b3df5c0e4d1020 *R/tools.shuffle.R
a45f1cf85640641ff71a3fa295372401 *man/CDFt.Rd
5fe6ef678dce3853fa52eba60ca388b8 *man/DistHelper.Rd
8d6d6149b65872af71ff9394da09c474 *man/ECBC.Rd
74590b48bcfe8e1d5966e24789b86ab2 *man/MBCn.Rd
8059a49b941f8ce0ae78063166bacaec *man/MRec.Rd
f7b432bdbe45e242bff1a682f2052a98 *man/OTC.Rd
2ced0dd5aff8907471657f9682e6f700 *man/OTHist.Rd
92924b697cef62328ba3c4c4032034cc *man/OTNetworkSimplex.Rd
f286df6fcc2adeeb066b1d64fe99769c *man/QDM.Rd
5ab810a2bf7f529aebd9432eb3cb123a *man/QM.Rd
4351176a74740f9052d6c4f3e3bb0be0 *man/QMrs.Rd
61f52dc43b49c83a6082b6fe96a2d0d9 *man/R2D2.Rd
7231ca57f2cc87f77c7a8662754b3082 *man/RBC.Rd
1e133125d3ec893c89d38501ac2baf7b *man/SBCK.Rd
8134b9dae46e351a464fb1e694886856 *man/SchaakeShuffle.Rd
2da8c64a6860769298c9b1006ce81d5d *man/SchaakeShuffleRef.Rd
7842f1bd0ebed07f79b6ff1be76ee759 *man/SlopeStoppingCriteria.Rd
e85713aa6012f84d3840ce1e1f22ae3d *man/SparseHist.Rd
cd41b7cb17898ac0a470e08ce7aaca74 *man/bin_width_estimator.Rd
139c26426cfb289c1547965f99c38eff *man/chebyshev.Rd
32e54a4e4ab89ed6cf25b8d204f94997 *man/cpp_pairwise_distances_XCall.Rd
f00157b8f54aedd7359931e7b406733b *man/cpp_pairwise_distances_XYCall.Rd
f9798adebefa34a3dac20fe62b220386 *man/cpp_pairwise_distances_XYstr.Rd
4b763c8b59ba9cba071cb80725fc6f4b *man/cpp_pairwise_distances_Xstr.Rd
12273cf3ded660bf9011a4198bf8a317 *man/dOTC.Rd
5c987d1cfdb70c137b92844aa02a5a8b *man/data_to_hist.Rd
7cf840687ce180c40ac200a3f4425012 *man/dataset_bimodal_reverse_2d.Rd
8e4daa2f224634827a16476b443df055 *man/dataset_gaussian_2d.Rd
65f0792c72112f1cf5ab41fc5438f88b *man/dataset_gaussian_L_2d.Rd
47d5876ccd09b1ec683014242e1d1b6d *man/dataset_gaussian_VS_exp_1d.Rd
030b5d76dc8810e47320478ba91fad13 *man/dataset_gaussian_exp_2d.Rd
29696d42cf8fb16d5509ebece79d107d *man/dataset_gaussian_exp_mixture_1d.Rd
dd7bee401d0b1b6a2f4494b69be8dcdc *man/energy.Rd
562f755741a8bd70b58fcd2dece8f398 *man/euclidean.Rd
600ad830ecb8281b87e0785e0a03f654 *man/manhattan.Rd
36b6ac58063a92924ffda56a2785245e *man/minkowski.Rd
88db3915239f6554c78f0a94ad0c9566 *man/network_simplex.Rd
01b2c7ffdade1276e35396516f23f784 *man/pairwise_distances.Rd
c4e328947c1cece97821b3a96897e2d0 *man/schaake_shuffle.Rd
7f62142254f01a5e28392a4141f7740c *man/wasserstein.Rd
e0ecb37bb42d118c5e2cff34b02805e4 *src/Makevars
9ad39f526753894a352e51bd348f25ea *src/NetworkSimplex.h
ff51ee613b6f38b70a43abf053040c7d *src/NetworkSimplexLemon.h
25ad81f72718232a9c1ef863a49dcd71 *src/Pairwise_distances.h
eb04f5353f102135bdbba65827dd0140 *src/RcppExports.cpp
13a0da7c77540925e3ff159866c5ec93 *src/SparseHist.h
5292520fc7a8577300acf79456176a72 *src/rcppeigen_modules.cpp
49 changes: 49 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Generated by roxygen2: do not edit by hand

export(CDFt)
export(DistHelper)
export(ECBC)
export(MBCn)
export(MRec)
export(OTC)
export(OTHist)
export(OTNetworkSimplex)
export(QDM)
export(QM)
export(QMrs)
export(R2D2)
export(RBC)
export(SchaakeShuffle)
export(SchaakeShuffleRef)
export(SlopeStoppingCriteria)
export(SparseHist)
export(bin_width_estimator)
export(chebyshev)
export(cpp_pairwise_distances_XCall)
export(cpp_pairwise_distances_XYCall)
export(cpp_pairwise_distances_XYstr)
export(cpp_pairwise_distances_Xstr)
export(dOTC)
export(data_to_hist)
export(dataset_bimodal_reverse_2d)
export(dataset_gaussian_2d)
export(dataset_gaussian_L_2d)
export(dataset_gaussian_VS_exp_1d)
export(dataset_gaussian_exp_2d)
export(dataset_gaussian_exp_mixture_1d)
export(energy)
export(euclidean)
export(manhattan)
export(minkowski)
export(network_simplex)
export(pairwise_distances)
export(schaake_shuffle)
export(wasserstein)
import(R6)
import(ROOPSD)
import(Rcpp)
import(methods)
importFrom(R6,R6Class)
importFrom(Rcpp,evalCpp)
importFrom(stats,quantile)
useDynLib(SBCK, .registration=TRUE)
77 changes: 77 additions & 0 deletions R/RcppExports.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#' network_simplex
#'
#' Function to solve network simplex problem
#'
#' @usage network_simplex(X,Y,D)
#' @param X [Rcpp::NumericVector] Source
#' @param Y [Rcpp::NumericVector] Target
#' @param D [Rcpp::NumericMatrix] Cost
#'
#' @return [Rcpp::List] List containing the plan and if optim is a success
#'
#' @export
network_simplex <- function(X, Y, D) {
.Call(`_SBCK_network_simplex`, X, Y, D)
}

#' cpp_pairwise_distances_XYstr
#'
#' Pairwise distances between two differents matrix X and Y with a
#' compiled str_metric. DO NOT USE, use SBCK::pairwise_distances
#'
#' @usage cpp_pairwise_distances_XYstr(X,Y,str_metric)
#' @param X [Rcpp::NumericMatrix] Matrix
#' @param Y [Rcpp::NumericMatrix] Matrix
#' @param str_metric [std::string] c++ string
#'
#' @export
cpp_pairwise_distances_XYstr <- function(X, Y, str_metric) {
.Call(`_SBCK_cpp_pairwise_distances_XYstr`, X, Y, str_metric)
}

#' cpp_pairwise_distances_Xstr
#'
#' Pairwise distances between X and themselves with a compiled
#' str_metric. DO NOT USE, use SBCK::pairwise_distances
#'
#' @usage cpp_pairwise_distances_Xstr(X,str_metric)
#' @param X [Rcpp::NumericMatrix] Matrix
#' @param str_metric [std::string] c++ string
#'
#' @export
cpp_pairwise_distances_Xstr <- function(X, str_metric) {
.Call(`_SBCK_cpp_pairwise_distances_Xstr`, X, str_metric)
}

#' cpp_pairwise_distances_XYCall
#'
#' Pairwise distances between X and Y with a R function (metric).
#' DO NOT USE, use SBCK::pairwise_distances
#'
#' @usage cpp_pairwise_distances_XYCall(X,Y,metric)
#' @param X [Rcpp::NumericMatrix] Matrix
#' @param Y [Rcpp::NumericMatrix] Matrix
#' @param metric [Rcpp::Function] R function
#'
#' @export
cpp_pairwise_distances_XYCall <- function(X, Y, metric) {
.Call(`_SBCK_cpp_pairwise_distances_XYCall`, X, Y, metric)
}

#' cpp_pairwise_distances_XCall
#'
#' Pairwise distances between X and themselves with a R function (metric).
#' DO NOT USE, use SBCK::pairwise_distances
#'
#' @usage cpp_pairwise_distances_XCall(X,metric)
#' @param X [Rcpp::NumericMatrix] Matrix
#' @param metric [Rcpp::Function] R function
#'
#' @export
cpp_pairwise_distances_XCall <- function(X, metric) {
.Call(`_SBCK_cpp_pairwise_distances_XCall`, X, metric)
}

37 changes: 37 additions & 0 deletions R/SBCK.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

## Copyright(c) 2021 Yoann Robin
##
## This file is part of SBCK.
##
## SBCK is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
##
## SBCK is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with SBCK. If not, see <https://www.gnu.org/licenses/>.

#' SBCK
#'
#' Statistical Bias Correction Kit
#'
#' @docType package
#' @author Yoann Robin Maintainer: Yoann Robin <yoann.robin.k@gmail.com>
#' @import methods
#' @import ROOPSD
#' @import R6
#' @import Rcpp
#' @importFrom Rcpp evalCpp
#' @useDynLib SBCK, .registration=TRUE
#' @name SBCK
NULL


loadModule("SBCK_cpp", TRUE)


0 comments on commit 3fd8fa0

Please sign in to comment.