# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#' diff_table cpp function
#' @param env_dat matrix of sites x environmental covariates.
#' @return diff_table difference between covariates between site-pairs
#' @export
diff_table_cpp <- function(env_dat) {
.Call('_bbgdm_diff_table_cpp', PACKAGE = 'bbgdm', env_dat)
}
#' predict bbgdm cpp function
#' @param raster_stack raster stack of i-spline transformed environmental layers.
#' @param output_raster binary raster one for cells to predict to and NA for areas not to predict too.
#' @param neighbourhood numeric matrix which creates the neighbourhood average.
#' @param bbgdm_coef I-spline coefficents from bbgdm model fit.
#' @export
pred_bbgdm_cpp <- function(raster_stack, output_raster, neighbourhood, bbgdm_coef) {
.Call('_bbgdm_pred_bbgdm_cpp', PACKAGE = 'bbgdm', raster_stack, output_raster, neighbourhood, bbgdm_coef)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.