wrangle mixture weights in go
This commit is contained in:
parent
fa0065c96e
commit
1f4eb1fec4
|
@ -51,7 +51,7 @@ type func64 func() float64
|
|||
|
||||
func sample_mixture(fs []func64, weights []float64) float64 {
|
||||
var sum_weights float64 = 0
|
||||
for i_, weight := range weights {
|
||||
for _, weight := range weights {
|
||||
sum_weights += weight
|
||||
}
|
||||
return sum_weights
|
||||
|
|
Loading…
Reference in New Issue
Block a user