Microsoft Research Community

Browse Forum Posts by Tags

Showing related tags and posts for the Infer.NET forum. See all tags in the site
  • Re: multinomial distribution?

    OK, if that is what you need, then the following C# code will do the job. // Sample data from the true discrete Vector trueProbs = new Vector (0.1, 0.2, 0.3, 0.4); Discrete trueDistrib = new Discrete (trueProbs); int [] data = new int [1000]; for ( int i = 0; i < data.Length; i++) data[ i ] = Rand...
    Posted to Infer.NET (Forum) by John Guiver on 03-03-2009
    Filed under: inference, Dirichlet, Discrete
Page 1 of 1 (1 items)
©2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Feedback