importFrom("graphics", "lines", "par", "plot", "points", "rect", "text")
importFrom("stats", "cov", "dist", "mahalanobis", "median", "sd")

importFrom("graphics", "curve", "lines", "par", "plot", "rect",
importFrom("stats", "as.dist", "cor", "dist", "dnorm", "hclust",
"lsfit", "na.omit", "pchisq", "pnorm", "qnorm", "rmultinom")

importFrom("stats", "integrate", "optimize", "pt", "qbeta", "qnorm", "qt")

importFrom("stats", "integrate", "optimize", "pt", "qbeta", "qnorm","qt")

importFrom("stats", "dbinom", "optimize", "pbeta", "pf", "pnorm", "qnorm", "qf", "var")
export(CDF.Pval, CDF.Pval.HA, cCDF.SoM, cCDF.ToJ, detail, dists, gentempfilenm, logit, logitInv,
pwrFDR, var.J.o.rtm, var.rtm.SoM, var.rtm.ToJ, find.f.star, "%,%", "%over%")

export(CDF.Pval, CDF.Pval.HA, cCDF.SoM, cCDF.ToJ, controlFDF, detail, dists, gentempfilenm,
logit, logitInv, pwrFDR, var.J.o.rtm, var.rtm.SoM, var.rtm.ToJ, "%,%", "%over%")

importFrom("stats", "dbinom", "optimize", "pbeta", "pf", "pnorm", "qnorm", "qf", "update", "var")

importFrom("stats", "binomial", "dbinom", "pbinom", "dnorm", "rnorm", "runif", "model.extract", "optimize",
"pbeta", "pf", "pnorm", "qnorm", "qf", "update", "var")
export(arg.vals, CDF.Pval, CDF.Pval.HA, CDF.Pval.ua.eq.u, CDF.Pval.ar.eq.u, cCDF.Rom, cCDF.ToM,
cCDF.VoR, cc.ROC, controlFDP, criterion, detail, dists, es.ROC, gentempfilenm, if.na.x,
if.y.z, if.0.rm, logit, logitInv, nna, pwrFDR, pwrFDR.grid, sd.rtm.Rom, sd.rtm.VoR,

importFrom("stats", 'pnorm', 'qnorm', 'dnorm', 'pt', 'qt', "dt", 'pf', 'qf', "df", "uniroot")
importFrom("graphics", "plot", "abline", "points", "legend", "layout", "polygon", "title", "par",

importFrom("stringr", str_split, str_locate_all, str_sub, str_length)

# NAMESPACE file of pyramid by Minato Nakazawa

useDynLib(qMRI, .registration = TRUE, .fixes = "C_")
importFrom("stats", "qchisq", "qf", "qnorm", "qt", "nls", "coef",

importFrom("stats", "qchisq", "qf", "qnorm", "qt", "nls", "coef", "quantile",
"dnorm", "median", "sd", "deviance", "lm.fit", "pchisq",

importFrom("aws", "awsLocalSigma", "medianFilter3D", "vpawscov2", "estimateSigmaCompl")