Class SampleIrwinHallDistribution
java.lang.Object
dk.alexandra.fresco.stat.sampling.SampleIrwinHallDistribution
- All Implemented Interfaces:
dk.alexandra.fresco.framework.builder.Computation<dk.alexandra.fresco.lib.fixed.SFixed,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
public class SampleIrwinHallDistribution extends Object implements dk.alexandra.fresco.framework.builder.Computation<dk.alexandra.fresco.lib.fixed.SFixed,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
Sample a number from an Irwin-Hall distribution which is the sum of n iid U(0,1)
distributions.
-
Constructor Summary
Constructors Constructor Description SampleIrwinHallDistribution(int n) -
Method Summary
Modifier and Type Method Description dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed>buildComputation(dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric builder)
-
Constructor Details
-
SampleIrwinHallDistribution
public SampleIrwinHallDistribution(int n)
-
-
Method Details
-
buildComputation
public dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed> buildComputation(dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric builder)- Specified by:
buildComputationin interfacedk.alexandra.fresco.framework.builder.Computation<dk.alexandra.fresco.lib.fixed.SFixed,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
-