public class Gamma extends java.lang.Object implements ContinuousDistribution
| Modifier and Type | Method and Description |
|---|---|
Diffs |
dLogProb(DoubleTensor x) |
DoubleTensor |
logProb(DoubleTensor x) |
static DoubleVertex |
logProbOutput(DoublePlaceholderVertex x,
DoublePlaceholderVertex theta,
DoublePlaceholderVertex k) |
DoubleTensor |
sample(long[] shape,
KeanuRandom random) |
static ContinuousDistribution |
withParameters(DoubleTensor theta,
DoubleTensor k) |
public static ContinuousDistribution withParameters(DoubleTensor theta, DoubleTensor k)
theta - scalek - shapepublic 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 theta, DoublePlaceholderVertex k)
public Diffs dLogProb(DoubleTensor x)
dLogProb in interface ContinuousDistribution