snap-stanford / snap

Stanford Network Analysis Platform (SNAP) is a general purpose network analysis and graph mining library.
Other
2.16k stars 797 forks source link

snap.aaMean gives sum instead of mean; string functionality needs to be created. #200

Open averyr2 opened 4 years ago

averyr2 commented 4 years ago

In line 1447 of snap-core/table.h, the snap.aaMean function has a line commented out that divides the sum by the number of objects to get the mean. It is commented out because it fails on string objects, but a workaround should be built so that this function works for integers and floats.