public class Gaussian extends Object
| Modifier and Type | Field and Description |
|---|---|
static double |
LOG2
The constant LOG2.
|
double |
mean
The Mean.
|
double |
stdDev
The Std dev.
|
| Constructor and Description |
|---|
Gaussian(double mean,
double stdDev)
Instantiates a new Gaussian.
|
| Modifier and Type | Method and Description |
|---|---|
long |
decode(BitInputStream in,
long max)
Decode long.
|
void |
encode(BitOutputStream out,
long value,
long max)
Encode.
|
static Gaussian |
fromBinomial(double probability,
long totalPopulation)
From binomial gaussian.
|
static double |
log2(double d)
Log 2 double.
|
public static final double LOG2
public final double mean
public final double stdDev
public Gaussian(double mean,
double stdDev)
mean - the meanstdDev - the std devpublic static Gaussian fromBinomial(double probability, long totalPopulation)
probability - the probabilitytotalPopulation - the total populationpublic static double log2(double d)
d - the dpublic long decode(BitInputStream in, long max) throws IOException
in - the inmax - the maxIOException - the io exceptionpublic void encode(BitOutputStream out, long value, long max) throws IOException
out - the outvalue - the valuemax - the maxIOException - the io exceptionCopyright © 2019 SimiaCryptus Software. All rights reserved.