# File lib/benelux/stats.rb, line 158 158: def merge!(other) 159: return self if other.n == 0 160: if @n == 0 161: @min, @max = other.min, other.max 162: else 163: @min = other.min if other.min < @min 164: @max = other.max if other.max > @max 165: end 166: @sum += other.sum 167: @sumsq += other.sumsq 168: @n += other.n 169: self 170: end