useDynLib(energy, .registration=TRUE)

importFrom(Rcpp, evalCpp)
importFrom("stats", "as.dist", "dist", "dnorm", "hclust", "model.matrix",
           "pnorm", "ppois", "pt", "rnorm", "rpois", "sd", "var")
importFrom(boot, boot)
importFrom(gsl, hyperg_1F1)

export(
  bcdcor,
  calc_dist,
  D_center,
  Dcenter,
  dcor,
  dcor2d,
  DCOR,
  dcor.test,
  dcorT,
  dcorT.test,
  dcov,
  dcov2d,
  dcov.test,
  dcovU,
  dcovU_stats,
  disco,
  disco.between,
  edist,
  energy.hclust,
  eqdist.e,
  eqdist.etest,
  indep.test,
  is.dmatrix,
  kgroups,
  ksample.e,
  mutualIndep.test,
  mvI,
  mvI.test,
  mvnorm.e,
  mvnorm.etest,
  mvnorm.test,
  normal.e,
  normal.test,
  pdcor,
  pdcor.test,
  pdcov,
  pdcov.test,
  poisson.e,
  poisson.etest,
  poisson.m,
  poisson.mtest,
  poisson.tests,
  sortrank,
  U_center,
  U_product,
  Ucenter
)

S3method(print, disco)
S3method(print, kgroups)
S3method(fitted, kgroups)
