1

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)?

Galuoises
  • 2,630
  • 24
  • 30

1 Answers1

2

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
ElectronWill
  • 754
  • 9
  • 17