go.opencensus.io/stats/view.DistributionData.Mean (field)
11 uses
go.opencensus.io/stats/view (current package)
aggregation_data.go#L122: Mean float64 // mean of the distribution
aggregation_data.go#L143: func (a *DistributionData) Sum() float64 { return a.Mean * float64(a.Count) }
aggregation_data.go#L166: a.Mean = v
aggregation_data.go#L170: oldMean := a.Mean
aggregation_data.go#L171: a.Mean = a.Mean + (v-a.Mean)/float64(a.Count)
aggregation_data.go#L172: a.SumOfSquaredDev = a.SumOfSquaredDev + (v-oldMean)*(v-a.Mean)
aggregation_data.go#L229: return a.Count == a2.Count && a.Min == a2.Min && a.Max == a2.Max && math.Pow(a.Mean-a2.Mean, 2) < epsilon && math.Pow(a.variance()-a2.variance(), 2) < epsilon
contrib.go.opencensus.io/exporter/stackdriver
stats.go#L507: Mean: v.Mean,
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |