Closed lileicc closed 9 years ago
@datang1992 please fix testing for Multinomial. tks!
@jxwuyi bird model works in this branch.
@lileicc I am wondering why are you using ArrayList instead of Integer[]. I think Integer[] is better for us to handle, and it should be more efficient. Even if you want to use a list, I think LinkedList is a better choice since it will be more convenient for computing the FiniteSupport. In fact, if we use any kind of list, we need to modify a lot of code, especially in the test code.
@datang1992 @jxwuyi Because we need to store the value in historgram, which is using hashCode. hashCode of Integer[] will be just object address, while hashCode of ArrayList will be based on the content of array. i.e. [1, 2, 3] is treated same as [1, 2, 3] even if you have different array instance.
@jxwuyi Since both Da and I worked on this branch, it is best if you can review this pr.
I will review now
On Sun, Oct 5, 2014 at 5:36 PM, lileicc notifications@github.com wrote:
@jxwuyi https://github.com/jxwuyi Since both Da and I worked on this branch, it is best if you can review this pr.
— Reply to this email directly or view it on GitHub https://github.com/BayesianLogic/blog/pull/317#issuecomment-57958308.
@jxwuyi Please review
@datang1992 Please check if the getFiniteSupport is correct.
@cberzan FYI.