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;
}