wrap #Cauchy in Ok

This commit is contained in:
Quinn 2022-04-20 11:49:41 -04:00 committed by GitHub
parent 5875880c06
commit 4631c183d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,7 @@ module Exponential = {
module Cauchy = {
type t = cauchy
let make = (local, scale): symbolicDist => #Cauchy({local: local, scale: scale})
let make = (local, scale): symbolicDist => Ok(#Cauchy({local: local, scale: scale}))
let pdf = (x, t: t) => Jstat.Cauchy.pdf(x, t.local, t.scale)
let cdf = (x, t: t) => Jstat.Cauchy.cdf(x, t.local, t.scale)
let inv = (p, t: t) => Jstat.Cauchy.inv(p, t.local, t.scale)