Distribution class final
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.
- Inheritance
-
- Object
- ProtoMessage
- Distribution
Constructors
-
Distribution({int count = 0, double mean = 0, double sumOfSquaredDeviation = 0, Distribution_Range? range, Distribution_BucketOptions? bucketOptions, List<
int> bucketCounts = const [], List<Distribution_Exemplar> exemplars = const []}) -
Distribution.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
bucketCounts
→ List<
int> -
The number of values in each bucket of the histogram, as described in
bucket_options. If the distribution does not have a histogram, then omit this field. If there is a histogram, then the sum of the values inbucket_countsmust equal the value in thecountfield of the distribution.final - bucketOptions → Distribution_BucketOptions?
-
Defines the histogram bucket boundaries. If the distribution does not
contain a histogram, then omit this field.
final
- count → int
-
The number of values in the population. Must be non-negative. This value
must equal the sum of the values in
bucket_countsif a histogram is provided.final -
exemplars
→ List<
Distribution_Exemplar> -
Must be in increasing order of
valuefield.final - hashCode → int
-
The hash code for this object.
no setterinherited
- mean → double
-
The arithmetic mean of the values in the population. If
countis zero then this field must be zero.final - qualifiedName → String
-
The fully qualified name of this message, i.e.,
google.protobuf.Durationorgoogle.rpc.ErrorInfo.finalinherited - range → Distribution_Range?
-
If specified, contains the range of the population values. The field
must not be present if the
countis zero.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sumOfSquaredDeviation → double
-
The sum of squared deviations from the mean of the values in the
population. For values x_i this is:
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Object -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- fullyQualifiedName → const String