### Imports
import(stats)
importFrom("survival", Surv, survfit)
importFrom("MASS", kde2d)
importFrom("grDevices", colorRampPalette, terrain.colors) 
importFrom("graphics", abline, axis, hist, hist.default, legend, lines, par, plot, points, polygon, contour, layout, matlines, segments, stripchart, image, pairs)
importFrom("utils", head, stack, modifyList)
importFrom("methods", formalArgs)

### Exports

#fitdist class
export(fitdist)
S3method(summary, fitdist)
S3method(plot, fitdist)
S3method(print, fitdist)
S3method(print, summary.fitdist)
S3method(print, quantile.fitdist)
S3method(print, gofstat.fitdist)
S3method(quantile, fitdist)
S3method(logLik, fitdist)
S3method(vcov, fitdist)
S3method(coef, fitdist)

#fitditscens class
export(fitdistcens)
S3method(summary, fitdistcens)
S3method(plot, fitdistcens)
S3method(print, fitdistcens)
S3method(print, summary.fitdistcens)
S3method(print, quantile.fitdistcens)
S3method(quantile, fitdistcens)
S3method(logLik, fitdistcens)
S3method(vcov, fitdistcens)
S3method(coef, fitdistcens)

#bootdist class
export(bootdist)
export(CIcdfplot)
S3method(summary, bootdist)
S3method(plot, bootdist)
S3method(print, bootdist)
S3method(print, summary.bootdist)
S3method(print, quantile.bootdist)
S3method(quantile, bootdist)

#bootdistcens class
export(bootdistcens)
S3method(summary, bootdistcens)
S3method(plot, bootdistcens)
S3method(print, bootdistcens)
S3method(print, summary.bootdistcens)
S3method(print, quantile.bootdistcens)
S3method(quantile, bootdistcens)

#descdist class
export(descdist)
S3method(print, descdist)

#new generic functions [to be removed]
#export(loglik)
#S3method(loglik, default)


#dedicated fit functions
export(mledist, mmedist, qmedist, mgedist)
export(detectbound, prefit)

#plot functions
export(plotdist, plotdistcens)
export(llplot, llsurface, llcurve)

#graphical comparison
export(cdfcomp, denscomp, qqcomp, ppcomp)
export(cdfcompcens)

#quantile functions [to be removed]
#export(quantiledist)
#export(quantiledistcens)

#other functions
export(gofstat)

### use dynamic library for C code
#useDynLib(fitdistrplus, .registration = TRUE)
