Distribution constructor
Distribution({
- Int64? count,
- double? mean,
- double? sumOfSquaredDeviation,
- Distribution_Range? range,
- Distribution_BucketOptions? bucketOptions,
- Iterable<
Int64> ? bucketCounts, - Iterable<
Distribution_Exemplar> ? exemplars,
Implementation
factory Distribution({
$fixnum.Int64? count,
$core.double? mean,
$core.double? sumOfSquaredDeviation,
Distribution_Range? range,
Distribution_BucketOptions? bucketOptions,
$core.Iterable<$fixnum.Int64>? bucketCounts,
$core.Iterable<Distribution_Exemplar>? exemplars,
}) {
final result = create();
if (count != null) result.count = count;
if (mean != null) result.mean = mean;
if (sumOfSquaredDeviation != null)
result.sumOfSquaredDeviation = sumOfSquaredDeviation;
if (range != null) result.range = range;
if (bucketOptions != null) result.bucketOptions = bucketOptions;
if (bucketCounts != null) result.bucketCounts.addAll(bucketCounts);
if (exemplars != null) result.exemplars.addAll(exemplars);
return result;
}