The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

Class Dependence Simulations

Eric Bridgeford

2020-06-22

require(mgc)
require(ggplot2)
n=400
d=2
K=5
plot_sim <- function(X, Y, name) {

  data <- data.frame(x1=X[,1], x2=X[,2], class=Y)
  ggplot(data, aes(x=x1, y=x2, color=class)) +
    geom_point() +
    xlab("x1") +
    ylab("x2") +
    ggtitle(name) +
    theme_bw()
}

Linear

sim <- discr.sims.linear(n, d, K, signal.lshift=3)
plot_sim(sim$X, sim$Y, "Linear")

Spread

sim <- discr.sims.fat_tails(n, d, K)
plot_sim(sim$X, sim$Y, "Fat Tails")

Cross

sim <- discr.sims.cross(n, d, 2)
plot_sim(sim$X, sim$Y, "Cross")

Radial

sim <- discr.sims.radial(n, d, K)
plot_sim(sim$X, sim$Y, "Radial")

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.