Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't get the KullbackLeiblerDistance #23

Open
GoogleCodeExporter opened this issue Apr 2, 2015 · 0 comments
Open

I can't get the KullbackLeiblerDistance #23

GoogleCodeExporter opened this issue Apr 2, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Hey guys, 

I'm trying to implement a simple program with Jahmm. I create two 
Hmm<ObservationInteger> variables, I introduce their data in order to model the 
HMM and I try to see their difference with these lines:

KullbackLeiblerDistanceCalculator cal = new KullbackLeiblerDistanceCalculator();
double dist = cal.distance(learntHmm, originalHmm);

But I can't compile it due this error:

method distance in class 
be.ac.ulg.montefiore.run.jahmm.toolbox.KullbackLeiblerDistanceCalculator cannot 
be applied to given types;
  required: be.ac.ulg.montefiore.run.jahmm.Hmm<O>,be.ac.ulg.montefiore.run.jahmm.Hmm<? super O>
  found: be.ac.ulg.montefiore.run.jahmm.Hmm<capture#11 of ?>,be.ac.ulg.montefiore.run.jahmm.Hmm<be.ac.ulg.montefiore.run.jahmm.ObservationInteger>
  reason: no instance(s) of type variable(s) O exist so that argument type be.ac.ulg.montefiore.run.jahmm.Hmm<be.ac.ulg.montefiore.run.jahmm.ObservationInteger> conforms to formal parameter type be.ac.ulg.montefiore.run.jahmm.Hmm<? super O>

Any suggestions?


Thanks in advance,

Original issue reported on code.google.com by miguel8...@gmail.com on 5 Nov 2011 at 1:46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant