func (s *Summary) Insert(v float64) {
	if v > s.Max || s.Cnt == 0 {
		s.Max = v
	}

	if v < s.Min || s.Cnt == 0 {
		s.Min = v
	}

	s.Cnt++
	s.Sum += v

	// incremental avg to reduce precision errors.
	s.Avg += (v - s.Avg) / float64(s.Cnt)
}
// Insert adds a single value to the summary.
Insert adds a single value to the summary.
// Insert adds a single value to the summary .
func (s *Summary) Insert(v float64) {
	if v > s.Max || s.Cnt == 0 {
		s.Max = v
	}
	if v < s.Min || s.Cnt == 0 {
		s.Min = v
	}
	s.Cnt++
	s.Sum += v
	s.Avg += (v - s.Avg) / float64(s.Cnt)
}
func ( s * Summary ) Insert ( v float64 ) { if v > s . Max || s . Cnt == 0 { s . Max = v } if v < s . Min || s . Cnt == 0 { s . Min = v } s . Cnt ++ s . Sum += v s . Avg += ( v - s . Avg ) / float64 ( s . Cnt ) }
Insert adds a single value to the summary.
Insert adds a single value to the summary .
// incremental avg to reduce precision errors.