Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,12 @@
|
|||
library(NostalgiR) #For the textual histogram.
|
||||
modifier <- function(x) 2*abs(x - 0.5)
|
||||
gen <- function()
|
||||
{
|
||||
repeat
|
||||
{
|
||||
random <- runif(2)
|
||||
if(random[2] < modifier(random[1])) return(random[1])
|
||||
}
|
||||
}
|
||||
data <- replicate(100000, gen())
|
||||
NostalgiR::nos.hist(data, breaks = 20, pch = "#")
|
||||
Loading…
Add table
Add a link
Reference in a new issue