Expectation Maximization in C#

430 views Asked by At

In the Internet, there are many code examples for C ++ or Python. But there is not a single example in C #.

I tried it myself and got an error.

 EM em = EM.Create();
 em.ClustersNumber = 2;
 em.CovarianceMatrixType = (int) EM.Types.CovMatGeneric; // <=System.AccessViolationException
 em.TermCriteria = new TermCriteria(type: CriteriaType.MaxIter, maxCount: 1500, epsilon: 0.001);

What is my problem? Can someone help with a working example on the topic of Expectation Maximization?

0

There are 0 answers