final case class Distribution(count: Long = 0L, mean: Double = 0.0, sumOfSquaredDeviation: Double = 0.0, range: Option[Range] = _root_.scala.None, bucketOptions: Option[BucketOptions] = _root_.scala.None, bucketCounts: Seq[Long] = _root_.scala.Seq.empty, exemplars: Seq[Exemplar] = _root_.scala.Seq.empty, unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[Distribution] with Product with Serializable
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.
- count
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.- mean
The arithmetic mean of the values in the population. If
countis zero then this field must be zero.- sumOfSquaredDeviation
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 323, 3rd edition describes Welford's method for accumulating this sum in one pass. If
countis zero then this field must be zero.- range
If specified, contains the range of the population values. The field must not be present if the
countis zero.- bucketOptions
Defines the histogram bucket boundaries. If the distribution does not contain a histogram, then omit this field.
- bucketCounts
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. If present,bucket_countsshould contain N values, where N is the number of buckets specified inbucket_options. If you supply fewer than N values, the remaining values are assumed to be 0. The order of the values inbucket_countsfollows the bucket numbering schemes described for the three bucket types. The first value must be the count for the underflow bucket (number 0). The next N-2 values are the counts for the finite buckets (number 1 through N-2). The N'th value inbucket_countsis the count for the overflow bucket (number N-1).- exemplars
Must be in increasing order of
valuefield.
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- Distribution
- Product
- Equals
- Updatable
- GeneratedMessage
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Distribution(count: Long = 0L, mean: Double = 0.0, sumOfSquaredDeviation: Double = 0.0, range: Option[Range] = _root_.scala.None, bucketOptions: Option[BucketOptions] = _root_.scala.None, bucketCounts: Seq[Long] = _root_.scala.Seq.empty, exemplars: Seq[Exemplar] = _root_.scala.Seq.empty, unknownFields: UnknownFieldSet = ...)
- count
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.- mean
The arithmetic mean of the values in the population. If
countis zero then this field must be zero.- sumOfSquaredDeviation
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 323, 3rd edition describes Welford's method for accumulating this sum in one pass. If
countis zero then this field must be zero.- range
If specified, contains the range of the population values. The field must not be present if the
countis zero.- bucketOptions
Defines the histogram bucket boundaries. If the distribution does not contain a histogram, then omit this field.
- bucketCounts
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. If present,bucket_countsshould contain N values, where N is the number of buckets specified inbucket_options. If you supply fewer than N values, the remaining values are assumed to be 0. The order of the values inbucket_countsfollows the bucket numbering schemes described for the three bucket types. The first value must be the count for the underflow bucket (number 0). The next N-2 values are the counts for the finite buckets (number 1 through N-2). The N'th value inbucket_countsis the count for the overflow bucket (number N-1).- exemplars
Must be in increasing order of
valuefield.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAllBucketCounts(__vs: Iterable[Long]): Distribution
- def addAllExemplars(__vs: Iterable[Exemplar]): Distribution
- def addBucketCounts(__vs: Long*): Distribution
- def addExemplars(__vs: Exemplar*): Distribution
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val bucketCounts: Seq[Long]
- val bucketOptions: Option[BucketOptions]
- def clearBucketCounts: Distribution
- def clearBucketOptions: Distribution
- def clearExemplars: Distribution
- def clearRange: Distribution
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
companion: Distribution.type
- Definition Classes
- Distribution → GeneratedMessage
- val count: Long
- def discardUnknownFields: Distribution
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val exemplars: Seq[Exemplar]
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def getBucketOptions: BucketOptions
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getField(__field: FieldDescriptor): PValue
- Definition Classes
- Distribution → GeneratedMessage
-
def
getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- Distribution → GeneratedMessage
- def getRange: Range
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val mean: Double
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val range: Option[Range]
-
def
serializedSize: Int
- Definition Classes
- Distribution → GeneratedMessage
- val sumOfSquaredDeviation: Double
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
-
final
def
toByteString: ByteString
- Definition Classes
- GeneratedMessage
-
final
def
toPMessage: PMessage
- Definition Classes
- GeneratedMessage
-
def
toProtoString: String
- Definition Classes
- Distribution → GeneratedMessage
- val unknownFields: UnknownFieldSet
-
def
update(ms: (Lens[Distribution, Distribution]) ⇒ Mutation[Distribution]*): Distribution
- Definition Classes
- Updatable
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def withBucketCounts(__v: Seq[Long]): Distribution
- def withBucketOptions(__v: BucketOptions): Distribution
- def withCount(__v: Long): Distribution
- def withExemplars(__v: Seq[Exemplar]): Distribution
- def withMean(__v: Double): Distribution
- def withRange(__v: Range): Distribution
- def withSumOfSquaredDeviation(__v: Double): Distribution
- def withUnknownFields(__v: UnknownFieldSet): Distribution
-
final
def
writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
-
def
writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- Distribution → GeneratedMessage
-
final
def
writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage