Distribution
contains summary statistics for a population of values. It
optionally contains a histogram representing the distribution of those values
across a set of buckets.
The summary statistics are the count, mean, sum of the squared deviation from
the mean, the minimum, and the maximum of the set of population of values.
The histogram is based on a sequence of buckets and gives a count of values
that fall into each bucket. The boundaries of the buckets are given either
explicitly or by formulas for buckets of fixed or exponentially increasing
widths.
Although it is not forbidden, it is generally a bad idea to include
non-finite values (infinities or NaNs) in the population of values, as this
will render the mean
and sum_of_squared_deviation
fields meaningless.
Generated from protobuf message google.api.Distribution
Methods |
public __construct( $data = NULL) Constructor.
|
public clearBucketOptions() |
public clearRange() |
public getBucketCounts() The number of values in each bucket of the histogram, as described in
If present, Generated from protobuf field repeated int64 bucket_counts = 7;
|
public getBucketOptions() Defines the histogram bucket boundaries. If the distribution does not contain a histogram, then omit this field. Generated from protobuf field .google.api.Distribution.BucketOptions bucket_options = 6;
|
public getCount() The number of values in the population. Must be non-negative. This value
must equal the sum of the values in Generated from protobuf field int64 count = 1;
|
public getExemplars() Must be in increasing order of Generated from protobuf field repeated .google.api.Distribution.Exemplar exemplars = 10;
|
public getMean() The arithmetic mean of the values in the population. If Generated from protobuf field double mean = 2;
|
public getRange() If specified, contains the range of the population values. The field
must not be present if the Generated from protobuf field .google.api.Distribution.Range range = 4;
|
public getSumOfSquaredDeviation() The sum of squared deviations from the mean of the values in the population. For values x_i this is: Sum[i=1..n]((x_i - mean)^2) Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition describes Welford's method for accumulating this sum in one pass. If Generated from protobuf field double sum_of_squared_deviation = 3;
|
public hasBucketOptions() |
public hasRange() |
public setBucketCounts( $var) The number of values in each bucket of the histogram, as described in
If present, Generated from protobuf field repeated int64 bucket_counts = 7;
|
public setBucketOptions( $var) Defines the histogram bucket boundaries. If the distribution does not contain a histogram, then omit this field. Generated from protobuf field .google.api.Distribution.BucketOptions bucket_options = 6;
|
public setCount( $var) The number of values in the population. Must be non-negative. This value
must equal the sum of the values in Generated from protobuf field int64 count = 1;
|
public setExemplars( $var) Must be in increasing order of Generated from protobuf field repeated .google.api.Distribution.Exemplar exemplars = 10;
|
public setMean( $var) The arithmetic mean of the values in the population. If Generated from protobuf field double mean = 2;
|
public setRange( $var) If specified, contains the range of the population values. The field
must not be present if the Generated from protobuf field .google.api.Distribution.Range range = 4;
|
public setSumOfSquaredDeviation( $var) The sum of squared deviations from the mean of the values in the population. For values x_i this is: Sum[i=1..n]((x_i - mean)^2) Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition describes Welford's method for accumulating this sum in one pass. If Generated from protobuf field double sum_of_squared_deviation = 3;
|
Properties |
protected $bucket_options = NULL Defines the histogram bucket boundaries. If the distribution does not contain a histogram, then omit this field. Generated from protobuf field .google.api.Distribution.BucketOptions bucket_options = 6; |
protected $count = 0 The number of values in the population. Must be non-negative. This value
must equal the sum of the values in Generated from protobuf field int64 count = 1; |
protected $mean = 0 The arithmetic mean of the values in the population. If Generated from protobuf field double mean = 2; |
protected $range = NULL If specified, contains the range of the population values. The field
must not be present if the Generated from protobuf field .google.api.Distribution.Range range = 4; |
protected $sum_of_squared_deviation = 0 The sum of squared deviations from the mean of the values in the population. For values x_i this is: Sum[i=1..n]((x_i - mean)^2) Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition describes Welford's method for accumulating this sum in one pass. If Generated from protobuf field double sum_of_squared_deviation = 3; |
Methods |
Properties |
private $bucket_counts = NULL The number of values in each bucket of the histogram, as described in
If present, Generated from protobuf field repeated int64 bucket_counts = 7; |
private $exemplars = NULL Must be in increasing order of Generated from protobuf field repeated .google.api.Distribution.Exemplar exemplars = 10; |