From 3b621529572b00a427e624e394130c2dd3a537bf Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Wed, 25 Oct 2023 15:07:42 +0200 Subject: [PATCH] Allow users to implement their own distributions --- FastRng/Distributions/Distribution.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FastRng/Distributions/Distribution.cs b/FastRng/Distributions/Distribution.cs index 2844cf1..16d16dd 100644 --- a/FastRng/Distributions/Distribution.cs +++ b/FastRng/Distributions/Distribution.cs @@ -16,7 +16,7 @@ public abstract class Distribution : IDistribution where TNum : IFlo this.fitter = new ShapeFitter(this.ShapeFunction, rng, 100); } - private protected abstract TNum ShapeFunction(TNum x); + public abstract TNum ShapeFunction(TNum x); public TNum GetDistributedValue(CancellationToken token = default) => this.fitter.NextNumber(token); -- 2.43.0