Skip to content

Commit

Permalink
Update goem.go
Browse files Browse the repository at this point in the history
  • Loading branch information
6br committed Mar 26, 2016
1 parent d40ff21 commit 2d31bc6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions goem/goem.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,14 @@ func (em EM) Show() {
fmt.Println("loglikelyhood: ", em.likelyhood(), " clusters: ", em.k)
}

/*
func arraySubInnerProduct(a []float64, b []float64) (result float64) {
for i := range a {
result += (a[i] - b[i]) * (a[i] - b[i])
}
return
}
*/

//EmIter culcurates EM algorithm.
func (em EM) EmIter(times int, loglike float64, verbose bool, directory string) {
Expand Down

0 comments on commit 2d31bc6

Please sign in to comment.