PoissonSamplersPerformance_jmhType_B1
public class PoissonSamplersPerformance
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
PoissonSamplersPerformance.Means |
The mean for the call to
Math.exp(double) . |
static class |
PoissonSamplersPerformance.Sources |
The
DiscreteSampler samplers to use for testing. |
Constructor | Description |
---|---|
PoissonSamplersPerformance() |
Modifier and Type | Method | Description |
---|---|---|
double |
baselineExp(PoissonSamplersPerformance.Means mean) |
Baseline for
Math.exp(double) . |
int |
baselineInt() |
Baseline for the JMH timing overhead for production of an
int value. |
int |
sample(PoissonSamplersPerformance.Sources sources) |
Run the sampler.
|
int |
singleSample(PoissonSamplersPerformance.Sources sources) |
Run the sampler.
|
public int baselineInt()
int
value.int
valuepublic double baselineExp(PoissonSamplersPerformance.Means mean)
Math.exp(double)
.mean
- the meanpublic int sample(PoissonSamplersPerformance.Sources sources)
sources
- Source of randomness.public int singleSample(PoissonSamplersPerformance.Sources sources)
sources
- Source of randomness.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.