From c12516c071888187b7f049ca834862c760da22bf Mon Sep 17 00:00:00 2001 From: stefan-aws Date: Fri, 26 Jul 2024 17:03:29 +0100 Subject: [PATCH] biginteger embedding --- docs/java/TestSamplers.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/java/TestSamplers.java b/docs/java/TestSamplers.java index 8aeabc0..276b9ad 100644 --- a/docs/java/TestSamplers.java +++ b/docs/java/TestSamplers.java @@ -52,9 +52,9 @@ public static void main(String[] args) { System.out.println(r.BernoulliExpNegSample(l, k)); System.out.println("Testing DiscreteGaussianSample(1000000, 1)"); - System.out.println(r.DiscreteGaussianSample(k, l, 7)); + System.out.println(r.DiscreteGaussianSample(k, l, BigInteger.valueOf(7))); System.out.println("Testing DiscreteGaussianSample(1, 1000000)"); - System.out.println(r.DiscreteGaussianSample(l, k, 7)); + System.out.println(r.DiscreteGaussianSample(l, k, BigInteger.valueOf(7))); System.out.println("Testing DiscreteLaplace(1000000, 1)"); System.out.println(r.DiscreteLaplaceSample(k, l)); @@ -81,7 +81,7 @@ public static void main(String[] args) { System.out.println(t.BernoulliExpNegSample(i, j)); System.out.println("Testing DiscreteGaussian(" + a + "/" + b + ")"); - System.out.println(t.DiscreteGaussianSample(i, j, 7)); + System.out.println(t.DiscreteGaussianSample(i, j, BigInteger.valueOf(7))); System.out.println("Testing DiscreteLaPlace(" + a + "/" + b + ")"); System.out.println(t.DiscreteLaplaceSample(i, j)); @@ -102,9 +102,9 @@ public static void main(String[] args) { System.out.println(t.BernoulliExpNegSample(l, k)); System.out.println("Testing DiscreteGaussianSample(1000000, 1)"); - System.out.println(t.DiscreteGaussianSample(k, l, 7)); + System.out.println(t.DiscreteGaussianSample(k, l, BigInteger.valueOf(7))); System.out.println("Testing DiscreteGaussianSample(1, 1000000)"); - System.out.println(t.DiscreteGaussianSample(l, k, 7)); + System.out.println(t.DiscreteGaussianSample(l, k, BigInteger.valueOf(7))); System.out.println("Testing DiscreteLaplace(1000000, 1)"); System.out.println(t.DiscreteLaplaceSample(k, l));