Just a quick easy question:
I am using the Java API to create a BN and I want to create an interval node which discretises a normal distribution with say mean 0.25 and variance 0.15.
I got as far as :
IntervalDCNode intNode = new IntervalDCNode (domain);
intNode.setNumberOfStates(10);
and then didn't know how to set the distribution and ranges that I want the intNode node to have.
I also don't know how to assign a normal distribution to a continuous node:
ContinuousChanceNode contNode = new ContinuousChanceNode(domain);
then what?? I expected there to be a method such as setDistribution(normal, mean, variance) - wishful thinking!
I looked at the Java examples and API documentation, but it is not clear to me how I create it.
The constructor needs two Expression objects, one for the mean & one for the variance, but don't know how to create the Expression objects to represent the mean & variance
Thanks.