powered by
Convert a normal (gaussian) distribution to a uniform distribution with specified minimum and maximum
norm2unif(x, min = 0, max = 1, mu = mean(x), sd = stats::sd(x))
a vector with a uniform distribution
the normally distributed vector
the minimum of the uniform distribution to return
the maximum of the uniform distribution to return
the mean of x (calculated from x if not given)
the SD of x (calculated from x if not given)
x <- rnorm(10000) y <- norm2unif(x) g <- ggplot2::ggplot() + ggplot2::geom_point(ggplot2::aes(x, y)) ggExtra::ggMarginal(g, type = "histogram")
Run the code above in your browser using DataLab