useDynLib(HiDimDA)
exportClasses(Dlda, Mlda, Slda, RFlda, DMat, ShrnkMat, ShrnkMatInv, SigFq, SigFqInv, ldaRes)
exportMethods(Dlda, Mlda, Slda, RFlda, LeftMult, RightMult, CovE, ICovE)
export(DMat, ShrnkMat, ShrnkMatInv, SigFq, SigFqInv, MldaInvE, ShrnkSigE, SelectV, DACrossVal, FrobSigAp, FrobSigAp1, ForbSigap, ForbSigap1)
exportPattern("Dlda.*", "Mlda.*", "Slda.*", "RFlda.*", "LeftMult.*", "RightMult.*", "CovE.*", "ICovE.*",
"*.canldaRes", "*.clldaRes", "*.ScanldaRes", "*.SclldaRes", "*.RFcanldaRes", "*.RFclldaRes",
"*.Dlda", "*.RFlda", "*.DMat", "*.ShrnkMat", "*.ShrnkMatInv", "*.SigFq", "*.SigFqInv")

useDynLib(HiDimDA)
import(splines)
exportClasses(Dlda, Mlda, Slda, RFlda, DMat, ShrnkMat, ShrnkMatInv, SigFq, SigFqInv, ldaRes)
exportMethods(Dlda, Mlda, Slda, RFlda, LeftMult, RightMult, CovE, ICovE)
export(DMat, ShrnkMat, ShrnkMatInv, SigFq, SigFqInv, MldaInvE, ShrnkSigE, SelectV, DACrossVal, FrobSigAp, FrobSigAp1, ForbSigap, ForbSigap1)
exportPattern("Dlda.*", "Mlda.*", "Slda.*", "RFlda.*", "LeftMult.*", "RightMult.*", "CovE.*", "ICovE.*",
"*.canldaRes", "*.clldaRes", "*.ScanldaRes", "*.SclldaRes", "*.RFcanldaRes", "*.RFclldaRes",
"*.Dlda", "*.RFlda", "*.DMat", "*.ShrnkMat", "*.ShrnkMatInv", "*.SigFq", "*.SigFqInv")

importFrom(graphics, abline, hist, lines, matplot, par, points, text, title)

export(mubz.copula, mubz.lnormal, mubz.normal, build.clusters.spatial, dens.grid.maxstable, dens.grid.excess, dens.grid.simultoccur, excess.censor, excess.l, maxstable.l.clusters, plot3d.densgrid, simultoccur.l, rCMS, rSchlatherExcess, select.mean, maxgrid, maxblocks, maxlik.maxstable, maxlik.excess, maxlik.simultoccur, spatialWhittleMatern, spatialCauchy, spatialPower, spatialPowerexp, spatialBessel, marginExp, marginFrechet, marginGPD, marginGamma, marginLnorm, marginUnif, marginWeibull)

#  The "exports" below are divided into blocks:
#   2.  generic functions applied to model objects
#   5.  miscellaneous, mainly fitting related

importFrom(stats, coefficients, dbinom, dgamma, dnorm, dpois,
fitted, formula, glm, glm.control, glm.fit, logLik,
pbinom, pgamma, pnorm, ppois, qnorm, rbinom,
residuals, rexp, rgamma, rnorm, rpois, runif,