Commit a1caf434 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

recalc weight sum

parent 56661b40
......@@ -162,6 +162,10 @@ numbers.calculus.GaussNewton = function(v,n,r,dr,eps,w){
// normalized weight
function wn(i,v){
for(var i=0;i<n;i++){
WSUM += w(i,v)
}
return w(i,v)/WSUM;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment