public class Gaussian extends java.lang.Object implements ContinuousDistribution
| Modifier and Type | Field and Description |
|---|---|
static double |
LN_SQRT_2PI |
static double |
SQRT_2PI |
| Modifier and Type | Method and Description |
|---|---|
Diffs |
dLogProb(DoubleTensor x) |
DoubleTensor |
logProb(DoubleTensor x) |
static DoubleVertex |
logProbOutput(DoublePlaceholderVertex x,
DoublePlaceholderVertex mu,
DoublePlaceholderVertex sigma) |
DoubleTensor |
sample(long[] shape,
KeanuRandom random) |
static ContinuousDistribution |
withParameters(DoubleTensor mu,
DoubleTensor sigma) |
public static final double SQRT_2PI
public static final double LN_SQRT_2PI
public static ContinuousDistribution withParameters(DoubleTensor mu, DoubleTensor sigma)
public DoubleTensor sample(long[] shape, KeanuRandom random)
sample in interface Distribution<DoubleTensor>public DoubleTensor logProb(DoubleTensor x)
logProb in interface Distribution<DoubleTensor>public static DoubleVertex logProbOutput(DoublePlaceholderVertex x, DoublePlaceholderVertex mu, DoublePlaceholderVertex sigma)
public Diffs dLogProb(DoubleTensor x)
dLogProb in interface ContinuousDistribution