Lines Matching refs:this
33 return (int)(log($value) / log($this->multiplier));
37 $this->resolution = $resolution;
38 $this->max_possible = $max_possible;
39 $this->sum = 0;
40 $this->sum_of_squares = 0;
41 $this->multiplier = 1+$resolution;
42 $this->count = 0;
43 $this->min_seen = $max_possible;
44 $this->max_seen = 0;
45 $this->buckets = array_fill(0, $this->bucket_for($max_possible)+1, 0);
49 $this->sum += $value;
50 $this->sum_of_squares += $value * $value;
51 $this->count += 1;
52 if ($value < $this->min_seen) {
53 $this->min_seen = $value;
55 if ($value > $this->max_seen) {
56 $this->max_seen = $value;
58 $this->buckets[$this->bucket_for($value)] += 1;
62 return $this->min_seen;
66 return $this->max_seen;
70 return $this->sum;
74 return $this->sum_of_squares;
78 return $this->count;
82 return $this->buckets;
86 $this->sum = 0;
87 $this->sum_of_squares = 0;
88 $this->count = 0;
89 $this->min_seen = $this->max_possible;
90 $this->max_seen = 0;
91 $this->buckets = array_fill(0, $this->bucket_for($this->max_possible)+1, 0);