Class SampleExponentialDistribution
java.lang.Object
dk.alexandra.fresco.stat.sampling.SampleExponentialDistribution
- All Implemented Interfaces:
dk.alexandra.fresco.framework.builder.Computation<dk.alexandra.fresco.lib.fixed.SFixed,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
public class SampleExponentialDistribution extends Object implements dk.alexandra.fresco.framework.builder.Computation<dk.alexandra.fresco.lib.fixed.SFixed,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
This computation samples from an exponential distribution with rate 1/lambda and location
0.
-
Constructor Summary
Constructors Constructor Description SampleExponentialDistribution(double b)SampleExponentialDistribution(dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed> b)SampleExponentialDistribution(BigDecimal b) -
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 root)
-
Constructor Details
-
SampleExponentialDistribution
public SampleExponentialDistribution(dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed> b) -
SampleExponentialDistribution
-
SampleExponentialDistribution
public SampleExponentialDistribution(double b)
-
-
Method Details
-
buildComputation
public dk.alexandra.fresco.framework.DRes<dk.alexandra.fresco.lib.fixed.SFixed> buildComputation(dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric root)- Specified by:
buildComputationin interfacedk.alexandra.fresco.framework.builder.Computation<dk.alexandra.fresco.lib.fixed.SFixed,dk.alexandra.fresco.framework.builder.numeric.ProtocolBuilderNumeric>
-