From 4c99a50d895328f87a7742ff0a461465ed0f154a Mon Sep 17 00:00:00 2001 From: Ozzie Gooen Date: Fri, 8 Apr 2022 15:57:18 -0400 Subject: [PATCH] Fix from CR --- .../rescript/Distributions/GenericDist/GenericDist_Types.res | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/squiggle-lang/src/rescript/Distributions/GenericDist/GenericDist_Types.res b/packages/squiggle-lang/src/rescript/Distributions/GenericDist/GenericDist_Types.res index 90189d00..45ad6f64 100644 --- a/packages/squiggle-lang/src/rescript/Distributions/GenericDist/GenericDist_Types.res +++ b/packages/squiggle-lang/src/rescript/Distributions/GenericDist/GenericDist_Types.res @@ -103,7 +103,7 @@ module Constructors = { module UsingDists = { let mean = (dist): t => FromDist(ToFloat(#Mean), dist) - let sample = (dist): t => FromDist(ToFloat(#Mean), dist) + let sample = (dist): t => FromDist(ToFloat(#Sample), dist) let cdf = (dist, f): t => FromDist(ToFloat(#Cdf(f)), dist) let inv = (dist, f): t => FromDist(ToFloat(#Inv(f)), dist) let pdf = (dist, f): t => FromDist(ToFloat(#Pdf(f)), dist)