Groups
Groups
Sign in
Groups
Groups
Jahmm HMM library
Conversations
About
Send feedback
Help
Bug in OpdfInteger.clone()
10 views
Skip to first unread message
Sadegh D.
unread,
Jul 29, 2011, 8:31:00 AM
7/29/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jahmm HMM library
Thanks for the great package...
The method: be.ac.ulg.montefiore.run.jahmm.OpdfInteger.clone() is
buggy since it doesn't clone the probabilities arrary.
Buggy code:
public OpdfInteger clone()
{
try {
return (OpdfInteger) super.clone();
} catch(CloneNotSupportedException e) {
throw new AssertionError(e);
}
}
Possible fix:
public OpdfInteger clone()
{
try {
OpdfInteger opdf = (OpdfInteger)
super.clone();
opdf.probabilities = probabilities.clone();
} catch(CloneNotSupportedException e) {
throw new AssertionError(e);
}
}
Regards,
Sadegh
Sadegh Dorri N.
unread,
Jul 29, 2011, 8:33:58 AM
7/29/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jahmm HMM library
Sorry, I forgot to return opdf...
Reply all
Reply to author
Forward
0 new messages