Quantcast
Channel: Math.NET Numerics - Math.NET
Viewing all articles
Browse latest Browse all 224

Multinominal Discrete Discribution

$
0
0

@Danilo_Acimovic wrote:

Hi,

I’m not able to generate Samples from Multinominal distribution:
Example:

  • double[] weights = { 0.2, 0.2, 0.2, 0.2, 0.2 };
  • Multinomial multinomial = new Multinomial(weights, 1);
    var samples = multinominal.Samples().ToList(); // stackoverflow exception

Any help with this?

Thanks, in advance!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 224

Trending Articles