# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
invC <- function(x) {
.Call('_firstpkg_invC', PACKAGE = 'firstpkg', x)
}
#' C++ implementation of multivariate normal probability density function for
#' multiple inputs
#'
#'Based on the implementation from Nino Hardt and Dicko Ahmadou
#'http://gallery.rcpp.org/articles/dmvnorm_arma/
#'(accessed in August 2014)
#'
#'@param x data matrix
#'@param mean mean vector
#'@param varcovM variance covariance matrix
#'@param Log logical flag for returning the log of the probability density
#'function. Defaults is \code{TRUE}
#'@return vector of densities
#'
#'@author Boris P. Hejblum
#'
#'@export
#'
#'@examples
#'mvnpdf(x=matrix(1.96), mean=0, varcovM=diag(1), Log=FALSE)
#'mvnpdfC(x=matrix(1.96), mean=0, varcovM=diag(1), Log=FALSE)
#'mvnpdf(x=matrix(1.96), mean=0, varcovM=diag(1))
#'mvnpdfC(x=matrix(1.96), mean=0, varcovM=diag(1))
#'
#'if(require(microbenchmark)){
#' library(microbenchmark)
#' microbenchmark(dnorm(1.96),
#' mvnpdf(x=matrix(1.96), mean=0, varcovM=diag(1), Log=FALSE),
#' mvnpdfC(x=matrix(1.96), mean=0, varcovM=diag(1), Log=FALSE),
#' times=10000L)
#'}else{
#' cat("package 'microbenchmark' not available\n")
#'}
#'
mvnpdfC <- function(x, mean, varcovM, Log = TRUE) {
.Call('_firstpkg_mvnpdfC', PACKAGE = 'firstpkg', x, mean, varcovM, Log)
}
#'@export
timesTwo <- function(x) {
.Call('_firstpkg_timesTwo', PACKAGE = 'firstpkg', x)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.