Created
June 17, 2015 11:03
-
-
Save khajavi/51129e39198d559929be to your computer and use it in GitHub Desktop.
Mathematics Statistics Distribution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name := "Statics" | |
version := "0.1" | |
scalaVersion := "2.11.6" | |
libraryDependencies += "org.apache.commons" % "commons-math3" % "3.5" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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