useDynLib(tclust, .registration = TRUE)
importFrom(Rcpp, evalCpp)

importFrom("stats", "mad", "median", "na.omit", "rnorm", "runif")
importFrom("utils", "flush.console", "setTxtProgressBar",
             "txtProgressBar")
importFrom("grDevices", "dev.interactive", "n2mfrow", "grey")
importFrom("graphics", "barplot", "layout", "legend", "lines", "par", "text")
importFrom("graphics", "axis", "box", "mtext", "plot.new", "points", "title")
importFrom("graphics", "abline", "polygon")
importFrom("stats", "heatmap", "princomp", "qchisq", "cov")
 importFrom("stats", "mahalanobis", "qnorm", "quantile", "sd")
  
importFrom("MASS", "mvrnorm")
importFrom("parallel", "detectCores", "makeCluster", "stopCluster")
import("foreach", "foreach")
import(doParallel)

export(
    simula.rlg,
    simula.tclust,
    rlg,
#    print.rlg,
    plot.rlg,
    tclust,
    print.tclust,
    plot.tclust,
    DiscrFact,
    print.DiscrFact,
    summary.DiscrFact,
    plot.DiscrFact,
#    plot_DiscrFact_p2,
#    plot_DiscrFact_p3,
    ctlcurves,
    print.ctlcurves,
    plot.ctlcurves,
    
#    tclust_c1,
#    tclust_c2,
    
    tkmeans,
    print.tkmeans,
    plot.tkmeans
)

#   S3method (print, rlg)
S3method (plot, rlg)
S3method (print, tclust)
S3method (plot, tclust)
S3method (print, DiscrFact)
S3method (summary, DiscrFact)
S3method (plot, DiscrFact)
S3method (print, ctlcurves)
S3method (plot, ctlcurves)
S3method (print, tkmeans)
S3method (plot, tkmeans)

