Package io.opencensus.metrics.export
Class AutoValue_Distribution
java.lang.Object
io.opencensus.metrics.export.Distribution
io.opencensus.metrics.export.AutoValue_Distribution
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Distribution
extends Distribution
-
Nested Class Summary
Nested classes/interfaces inherited from class io.opencensus.metrics.export.Distribution
Distribution.Bucket, Distribution.BucketOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Distribution.BucketOptions
private final List
<Distribution.Bucket> private final long
private final double
private final double
-
Constructor Summary
ConstructorsConstructorDescriptionAutoValue_Distribution
(long count, double sum, double sumOfSquaredDeviations, Distribution.BucketOptions bucketOptions, List<Distribution.Bucket> buckets) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns bucket options used to create a histogram for the distribution.Returns the aggregated histogramDistribution.Bucket
s.long
getCount()
Returns the aggregated count.double
getSum()
Returns the aggregated sum.double
Returns the aggregated sum of squared deviations.int
hashCode()
toString()
Methods inherited from class io.opencensus.metrics.export.Distribution
create
-
Field Details
-
count
private final long count -
sum
private final double sum -
sumOfSquaredDeviations
private final double sumOfSquaredDeviations -
bucketOptions
-
buckets
-
-
Constructor Details
-
AutoValue_Distribution
AutoValue_Distribution(long count, double sum, double sumOfSquaredDeviations, @Nullable Distribution.BucketOptions bucketOptions, List<Distribution.Bucket> buckets)
-
-
Method Details
-
getCount
public long getCount()Description copied from class:Distribution
Returns the aggregated count.- Specified by:
getCount
in classDistribution
- Returns:
- the aggregated count.
-
getSum
public double getSum()Description copied from class:Distribution
Returns the aggregated sum.- Specified by:
getSum
in classDistribution
- Returns:
- the aggregated sum.
-
getSumOfSquaredDeviations
public double getSumOfSquaredDeviations()Description copied from class:Distribution
Returns the aggregated sum of squared deviations.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)
If count is zero then this field must be zero.
- Specified by:
getSumOfSquaredDeviations
in classDistribution
- Returns:
- the aggregated sum of squared deviations.
-
getBucketOptions
Description copied from class:Distribution
Returns bucket options used to create a histogram for the distribution.- Specified by:
getBucketOptions
in classDistribution
- Returns:
- the
BucketOptions
associated with theDistribution
, ornull
if there isn't one.
-
getBuckets
Description copied from class:Distribution
Returns the aggregated histogramDistribution.Bucket
s.- Specified by:
getBuckets
in classDistribution
- Returns:
- the aggregated histogram buckets.
-
toString
-
equals
-
hashCode
public int hashCode()
-