From d330c4c2f2cfbd8e8edaabd699442b3962bebfb3 Mon Sep 17 00:00:00 2001 From: zjzxiaohei <108013625+zjzxiaohei@users.noreply.github.com> Date: Wed, 30 Oct 2024 15:56:24 +1300 Subject: [PATCH] Add GeneratorInfo #463 --- .../src/main/java/lphy/base/distribution/Multinomial.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lphy-base/src/main/java/lphy/base/distribution/Multinomial.java b/lphy-base/src/main/java/lphy/base/distribution/Multinomial.java index 059ee701..d728bae8 100644 --- a/lphy-base/src/main/java/lphy/base/distribution/Multinomial.java +++ b/lphy-base/src/main/java/lphy/base/distribution/Multinomial.java @@ -2,6 +2,8 @@ import lphy.core.model.RandomVariable; import lphy.core.model.Value; +import lphy.core.model.annotation.GeneratorCategory; +import lphy.core.model.annotation.GeneratorInfo; import lphy.core.model.annotation.ParameterInfo; import org.apache.commons.math3.random.RandomGenerator; import org.apache.mahout.math.random.WeightedThing; @@ -32,6 +34,9 @@ public Multinomial(){ protected void constructDistribution(RandomGenerator random) { } + @GeneratorInfo(name = "Multinomail", verbClause = "has", narrativeName = "multinomial prior", + category = GeneratorCategory.PRIOR, examples = {"gt16ReadCountModel.lphy"}, + description = "The multinomial probability distribution.") @Override public RandomVariable sample() { weightedThings = new ArrayList<>();