Skip to content
rodneykinney edited this page May 1, 2015 · 3 revisions
import quisp.Plot._
val rand = new scala.util.Random()
def randomSum = (0 until 10).map(i => rand.nextDouble).sum - 5.0
histogram((0 to 10000).map(i => randomSum))
  .title("Central Limit Theorem")

Highcharts

import quisp.highcharts.Plot._
val rand = new scala.util.Random()
def randomSum = (0 until 10).map(i => rand.nextDouble).sum - 5.0
histogram((0 to 10000).map(i => randomSum))
  .title.text("Central Limit Theorem")

Clone this wiki locally