Skip to content

Instantly share code, notes, and snippets.

@khajavi
Created June 17, 2015 11:03
Show Gist options
  • Save khajavi/51129e39198d559929be to your computer and use it in GitHub Desktop.
Save khajavi/51129e39198d559929be to your computer and use it in GitHub Desktop.
Mathematics Statistics Distribution
name := "Statics"
version := "0.1"
scalaVersion := "2.11.6"
libraryDependencies += "org.apache.commons" % "commons-math3" % "3.5"
import org.apache.commons.math3.distribution.NormalDistribution
object statics {
def main(args: Array[String]) = {
var normal = new NormalDistribution(4, 2)
for (x <- 1 to 10)
println(normal.sample)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment