Skip to content

Commit

Permalink
updated config
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavprakash22 committed Jun 30, 2023
1 parent 1ef7a05 commit 749ab10
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ importFrom(stats,predict)
importFrom(stats,sd)
importFrom(stats,var)
importFrom(utils,write.table)
useDynLib(DSWE)
useDynLib(DSWE, .registration = TRUE)
2 changes: 1 addition & 1 deletion R/CovMatchSubroutines.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# SOFTWARE.

#' @importFrom matrixStats colMins colMaxs colSds
#' @useDynLib DSWE
#' @useDynLib DSWE, .registration = TRUE
#' @importFrom Rcpp sourceCpp

CovMatch.Mult = function(dname, cov, wgt, cov.circ){
Expand Down
2 changes: 2 additions & 0 deletions R/KnnPCFit.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
#' knn_model = KnnPCFit(data, xCol, yCol, subsetSelection)
#'
#' @export
#' @useDynLib DSWE, .registration = TRUE
#' @importFrom FNN knn.reg knnx.index
#'
KnnPCFit = function(data, xCol, yCol, subsetSelection = FALSE){

if(!is.matrix(data) & !is.data.frame(data)){
Expand Down
16 changes: 8 additions & 8 deletions R/RcppExports.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,34 @@
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

computeWeightedY <- function(X, y, params) {
.Call('_DSWE_computeWeightedY', PACKAGE = 'DSWE', X, y, params)
.Call(`_DSWE_computeWeightedY`, X, y, params)
}

predictGP <- function(X, weightedY, Xnew, params) {
.Call('_DSWE_predictGP', PACKAGE = 'DSWE', X, weightedY, Xnew, params)
.Call(`_DSWE_predictGP`, X, weightedY, Xnew, params)
}

computeLogLikGP_ <- function(X, y, params) {
.Call('_DSWE_computeLogLikGP_', PACKAGE = 'DSWE', X, y, params)
.Call(`_DSWE_computeLogLikGP_`, X, y, params)
}

computeLogLikGradGP_ <- function(X, y, params) {
.Call('_DSWE_computeLogLikGradGP_', PACKAGE = 'DSWE', X, y, params)
.Call(`_DSWE_computeLogLikGradGP_`, X, y, params)
}

computeLogLikGradGPZeroMean_ <- function(X, y, params) {
.Call('_DSWE_computeLogLikGradGPZeroMean_', PACKAGE = 'DSWE', X, y, params)
.Call(`_DSWE_computeLogLikGradGPZeroMean_`, X, y, params)
}

computeDiffCov_ <- function(X1, y1, X2, y2, XT, theta, sigma_f, sigma_n, beta) {
.Call('_DSWE_computeDiffCov_', PACKAGE = 'DSWE', X1, y1, X2, y2, XT, theta, sigma_f, sigma_n, beta)
.Call(`_DSWE_computeDiffCov_`, X1, y1, X2, y2, XT, theta, sigma_f, sigma_n, beta)
}

computeConfBand_ <- function(diffCovMat, confLevel) {
.Call('_DSWE_computeConfBand_', PACKAGE = 'DSWE', diffCovMat, confLevel)
.Call(`_DSWE_computeConfBand_`, diffCovMat, confLevel)
}

matchcov <- function(ref, obj, thres, circ_pos, flag) {
.Call('_DSWE_matchcov', PACKAGE = 'DSWE', ref, obj, thres, circ_pos, flag)
.Call(`_DSWE_matchcov`, ref, obj, thres, circ_pos, flag)
}

2 changes: 1 addition & 1 deletion R/funGPSubroutines.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

#' @useDynLib DSWE
#' @useDynLib DSWE, .registration = TRUE
#' @importFrom Rcpp sourceCpp
#'
estimateParameters= function(datalist, covCols, yCol, opt_method, limitMemory, optimSize, rngSeed){
Expand Down
1 change: 1 addition & 0 deletions R/tempGPSubroutines.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

#' @useDynLib DSWE, .registration = TRUE

computeThinningNumber = function(trainX, max_thinning_number){
thinning_vec = rep(max_thinning_number, ncol(trainX))
Expand Down

0 comments on commit 749ab10

Please sign in to comment.