Percent point function (PPF) in scala for a normal distribution

488 Views Asked by At

I was wondering what is the equivalent Scala function to compute the Percent point function of a normal distribution as in python one can use the Scipy function scipy.stats.norm.ppf(x)?

1

There are 1 best solutions below

0
ElectronWill On BEST ANSWER

There is an inverseCdf function in Breeze. Example with the normal distribution:

import breeze.stats.distributions._
val med = Gaussian(0, 1).inverseCdf(0.5) // 0.0