Skip to content

Commit

Permalink
Add GeneratorInfo #463
Browse files Browse the repository at this point in the history
  • Loading branch information
zjzxiaohei committed Oct 30, 2024
1 parent 8cbdc48 commit d330c4c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<Integer[]> sample() {
weightedThings = new ArrayList<>();
Expand Down

0 comments on commit d330c4c

Please sign in to comment.