Changeset 157
- Timestamp:
- Sep 16, 2004, 1:55:22 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 5 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/WeNNI.cc
r146 r157 40 40 norm+=1.0/(distance[*k].second); 41 41 } 42 data_(i,j)=weight_(i,j)*data_(i,j)+(1-weight_(i,j))*new_value/norm; 42 // No impute if no contributions from neighbours. 43 if (norm) 44 data_(i,j)=weight_(i,j)*data_(i,j)+(1-weight_(i,j))*new_value/norm; 43 45 } 44 46 } -
trunk/src/kNNI.cc
r146 r157 47 47 norm+=1.0/(distance[*k].second); 48 48 } 49 data_(mv_rows_[i],j)=new_value/norm; 49 // No impute if no contributions from neighbours. 50 if (norm) 51 data_(mv_rows_[i],j)=new_value/norm; 50 52 } 51 53 }
Note: See TracChangeset
for help on using the changeset viewer.