Documentation ¶
Index ¶
- func NewRegularDistribution() distribution.Distribution
- type RegularDistribution
- func (regularDist *RegularDistribution) AddDistribution(distribution distribution.Distribution)
- func (regularDist *RegularDistribution) AddDistributionWithWeight(distribution distribution.Distribution, weight float64)
- func (regularDist *RegularDistribution) AddEntry(value float64, weight float64) error
- func (regularDist *RegularDistribution) AddEntryWithUnit(value float64, weight float64, unit string) error
- func (rd *RegularDistribution) ConvertFromOtel(dp pmetric.HistogramDataPoint, unit string)
- func (rd *RegularDistribution) ConvertToOtel(dp pmetric.HistogramDataPoint)
- func (regularDist *RegularDistribution) GetCount(value float64) float64
- func (regularDist *RegularDistribution) Maximum() float64
- func (regularDist *RegularDistribution) Minimum() float64
- func (regularDist *RegularDistribution) SampleCount() float64
- func (regularDist *RegularDistribution) Size() int
- func (regularDist *RegularDistribution) Sum() float64
- func (regularDist *RegularDistribution) Unit() string
- func (regularDist *RegularDistribution) ValuesAndCounts() (values []float64, counts []float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRegularDistribution ¶
func NewRegularDistribution() distribution.Distribution
Types ¶
type RegularDistribution ¶
type RegularDistribution struct {
// contains filtered or unexported fields
}
func (*RegularDistribution) AddDistribution ¶
func (regularDist *RegularDistribution) AddDistribution(distribution distribution.Distribution)
func (*RegularDistribution) AddDistributionWithWeight ¶
func (regularDist *RegularDistribution) AddDistributionWithWeight(distribution distribution.Distribution, weight float64)
func (*RegularDistribution) AddEntry ¶
func (regularDist *RegularDistribution) AddEntry(value float64, weight float64) error
weight is 1/samplingRate
func (*RegularDistribution) AddEntryWithUnit ¶
func (regularDist *RegularDistribution) AddEntryWithUnit(value float64, weight float64, unit string) error
weight is 1/samplingRate
func (*RegularDistribution) ConvertFromOtel ¶ added in v1.300025.0
func (rd *RegularDistribution) ConvertFromOtel(dp pmetric.HistogramDataPoint, unit string)
func (*RegularDistribution) ConvertToOtel ¶ added in v1.300025.0
func (rd *RegularDistribution) ConvertToOtel(dp pmetric.HistogramDataPoint)
func (*RegularDistribution) GetCount ¶
func (regularDist *RegularDistribution) GetCount(value float64) float64
func (*RegularDistribution) Maximum ¶
func (regularDist *RegularDistribution) Maximum() float64
func (*RegularDistribution) Minimum ¶
func (regularDist *RegularDistribution) Minimum() float64
func (*RegularDistribution) SampleCount ¶
func (regularDist *RegularDistribution) SampleCount() float64
func (*RegularDistribution) Size ¶
func (regularDist *RegularDistribution) Size() int
func (*RegularDistribution) Sum ¶
func (regularDist *RegularDistribution) Sum() float64
func (*RegularDistribution) Unit ¶
func (regularDist *RegularDistribution) Unit() string
func (*RegularDistribution) ValuesAndCounts ¶
func (regularDist *RegularDistribution) ValuesAndCounts() (values []float64, counts []float64)
Click to show internal directories.
Click to hide internal directories.