tankbattle posted on 12-09-2009 1:43 AM
I wrote the following code to get the likelyhood of value 0 for Binomial distribution B(1000, 0.1):
static void Main(string[] args)
{
Variable<int> b1 = Variable.Binomial(1000, 0.1);
InferenceEngine ie = new InferenceEngine();
Variable<int> dest = Variable.New<int>();
dest.ObservedValue = 0;
Console.WriteLine(ie.Infer(b1 > dest));
Console.ReadKey();
}
and on running, the TransferFailedException was thrown with message:
ChannelTransform failed with 1 error(s) and 0 warning(s):
Cannot automatically determine distribution type for variable type 'int': you must specify a arginalPrototype attribute for variable 'vint1'. in int vint1
Is it possible I missed any initialization work? Thank you in advance!