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 |
---|---|
DoubleTensor[] |
dLogProb(DoubleTensor x,
boolean wrtX,
boolean wrtMu,
boolean wrtSigma) |
DoubleTensor |
logProb(DoubleTensor x) |
static DoubleVertex |
logProbOutput(DoublePlaceholderVertex x,
DoublePlaceholderVertex mu,
DoublePlaceholderVertex sigma) |
DoubleTensor |
sample(long[] shape,
KeanuRandom random) |
static Gaussian |
withParameters(DoubleTensor mu,
DoubleTensor sigma) |
public static final double SQRT_2PI
public static final double LN_SQRT_2PI
public static Gaussian 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 DoubleTensor[] dLogProb(DoubleTensor x, boolean wrtX, boolean wrtMu, boolean wrtSigma)