# File lib/rfuzz/stats.rb, line 79 79: def sd 80: # (sqrt( ((s).sumsq - ( (s).sum * (s).sum / (s).n)) / ((s).n-1) )) 81: begin 82: return Math.sqrt( (@sumsq - ( @sum * @sum / @n)) / (@n-1) ) 83: rescue Errno::EDOM 84: return 0.0 85: end 86: end