Author Topic: re: Question on using Hugin API for Beta and Binomial distribution  (Read 14246 times)

Offline minh

  • Newbie
  • *
  • Posts: 2
    • View Profile
Hello,

   My name is Min and i am new to Hugin. I am trying to find out if  Hugin API allows me to compute for the  beta and binomial distribution.

   I am using winbug now for the computing of binomial distribution from the prior value which is the beta distribution of two value x and y; and i am trying to find out if Hugin allows me to code the same thing in my Java class.

  If you would not mind, could you please provide me a simple example where you would do that.

Thanks so much in advance,
Minh

Offline Anders L Madsen

  • HUGIN Expert
  • Hero Member
  • *****
  • Posts: 2295
    • View Profile
Re: re: Question on using Hugin API for Beta and Binomial distribution
« Reply #1 on: December 08, 2011, 23:35:37 »
In HUGIN you can use the Table Generator functionality to generate the content of a conditional probability table from a mathematical expression describing the relationship between parent configurations and the states of the child.

For the IntervalDCNode it is possible to define the CPT as a binomial or beta distribution. The parameters of the distributions may be other nodes in the Domain. You should consult the HUGIN API Reference Manual and/or the Table Generator tutorial in the HTML help associated with the HUGIN GUI.
HUGIN EXPERT A/S

Offline minh

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: re: Question on using Hugin API for Beta and Binomial distribution
« Reply #2 on: December 09, 2011, 20:35:47 »
Hello,

  Thanks for the pointer, since i am trying to do within a java class , would you please tell me where i can get the jar file so i can include all packages in a java class.

Thanks,

MInh

Offline Anders L Madsen

  • HUGIN Expert
  • Hero Member
  • *****
  • Posts: 2295
    • View Profile
Re: re: Question on using Hugin API for Beta and Binomial distribution
« Reply #3 on: December 10, 2011, 17:08:57 »
Please consult chapter 1 of the HUGIN API Reference Manual (it is referred to as "HUGIN C API 7.5 Help" in a HUGIN 7.5 installation). The Test directory of the HUGIN installation contains a number of examples - consult the readme.txt file.
HUGIN EXPERT A/S