# clusta NAMESPACE (hand-written; keep in sync with the @export tags)

# ---- the DP clustering facade -----------------------------------------------
export(clusta)
export(clusta_compare)
export(clusta_elbow)
export(fviz_clusta)

# ---- S-MPDP (the headline spectral method) ----------------------------------
export(spectral_mpdp)
export(mpdp)
export(cluster_metrics)
export(run_clustering_benchmarks)

# ---- diagnostics -------------------------------------------------------------
export(suggest_k)
export(cluster_stability)

# ---- paper-reproduction helpers ----------------------------------------------
export(smpdp_sensitivity)
export(friedman_ranks)

# ---- simulated dataset generators -------------------------------------------
export(gen_two_moons)
export(gen_v_shape)
export(gen_concentric_circles)
export(gen_smiley)
export(gen_three_spirals)
export(gen_cassini)
export(gen_non_convex)

# ---- distribution helpers used by the DP objective --------------------------
export(dpareto)
export(ppareto)
export(qpareto)

# ---- S3 methods -------------------------------------------------------------
S3method(print,   clusta)
S3method(summary, clusta)
S3method(plot,    clusta)
S3method(fitted,  clusta)
S3method(predict, clusta)

S3method(print,   mpdp)
S3method(summary, mpdp)

S3method(print,   smpdp)
S3method(summary, smpdp)
S3method(plot,    smpdp)

S3method(print,   smpdp_k)
S3method(plot,    smpdp_k)
S3method(print,   smpdp_stability)
S3method(plot,    smpdp_stability)
S3method(print,   smpdp_sensitivity)
S3method(plot,    smpdp_sensitivity)
S3method(print,   clusta_ranks)
S3method(plot,    clusta_ranks)

# autoplot() is a ggplot2 generic and ggplot2 is only Suggested, so the method
# is registered at load time in .onLoad(); it is exported here so that it can
# also be called directly.
export(autoplot.smpdp)

# ---- imports ----------------------------------------------------------------
importFrom(stats, prcomp, kmeans, density, dist, predict, sd, var, optim,
           dnorm, pnorm, qnorm, pgamma, setNames, runif, rnorm, cutree,
           hclust, median, reshape, pchisq, pf)
importFrom(graphics, hist, abline, points, rect, legend, lines, polygon,
           segments, text, par, plot.new, plot.window, axis, title, mtext,
           barplot, boxplot, image, box)
importFrom(grDevices, adjustcolor, colorRampPalette, hcl.colors)
importFrom(utils, head, combn, globalVariables)
