Lines Matching refs:samples
419 def __init__(self, sums, squares, samples):
422 self.samples = samples
430 if self.samples > 0:
432 p.value = self.sums / self.samples
436 if self.samples > 1:
437 var = (self.samples * self.squares - self.sums ** 2) \
438 / (self.samples * (self.samples - 1))
447 p.name = name + ".samples"
448 p.value = self.samples
456 self.samples == other.samples
461 self.samples -= other.samples
467 self.samples += other.samples
475 self.samples /= other
479 def __init__(self, sums, squares, samples, minval, maxval,
483 self.samples = samples
536 self.samples == other.samples
541 self.samples -= other.samples
543 if other.samples:
552 if not self.samples and other.samples:
558 self.samples += other.samples
560 if other.samples:
573 self.samples /= other
575 if self.samples:
639 reduce(sums, [d.samples for d in self.dist]))
644 reduce(sums, [d.samples for d in self.dist]),