NVIDIA DeepStream SDK API Reference
9.2 Release
includes/opentelemetry/sdk/metrics/aggregation/base2_exponential_histogram_indexer.h
Go to the documentation of this file.
1
// Copyright The OpenTelemetry Authors
2
// SPDX-License-Identifier: Apache-2.0
3
4
#pragma once
5
6
#include <stdint.h>
7
8
#include "opentelemetry/version.h"
9
10
OPENTELEMETRY_BEGIN_NAMESPACE
11
namespace
sdk
12
{
13
namespace
metrics
14
{
15
16
/*
17
* An indexer for base2 exponential histograms. It is used to calculate index for a given value and
18
* scale.
19
*/
20
class
Base2ExponentialHistogramIndexer
21
{
22
public
:
23
/*
24
* Construct a new indexer for a given scale.
25
*/
26
explicit
Base2ExponentialHistogramIndexer
(int32_t scale = 0);
27
Base2ExponentialHistogramIndexer
(
const
Base2ExponentialHistogramIndexer
&other) =
default
;
28
Base2ExponentialHistogramIndexer
&
operator=
(
const
Base2ExponentialHistogramIndexer
&other) =
29
default
;
30
37
int32_t
ComputeIndex
(
double
value)
const
;
38
39
private
:
40
int32_t scale_;
41
double
scale_factor_;
42
};
43
44
}
// namespace metrics
45
}
// namespace sdk
46
OPENTELEMETRY_END_NAMESPACE
OPENTELEMETRY_BEGIN_NAMESPACE
#define OPENTELEMETRY_BEGIN_NAMESPACE
Definition:
includes/opentelemetry/version.h:21
sdk::metrics::Base2ExponentialHistogramIndexer
Definition:
includes/opentelemetry/sdk/metrics/aggregation/base2_exponential_histogram_indexer.h:20
sdk::metrics::Base2ExponentialHistogramIndexer::Base2ExponentialHistogramIndexer
Base2ExponentialHistogramIndexer(int32_t scale=0)
OPENTELEMETRY_END_NAMESPACE
#define OPENTELEMETRY_END_NAMESPACE
Definition:
includes/opentelemetry/version.h:24
sdk::metrics::Base2ExponentialHistogramIndexer::ComputeIndex
int32_t ComputeIndex(double value) const
Compute the index for the given value.
sdk::metrics::Base2ExponentialHistogramIndexer::operator=
Base2ExponentialHistogramIndexer & operator=(const Base2ExponentialHistogramIndexer &other)=default
sdk
Definition:
includes/opentelemetry/sdk/common/atomic_shared_ptr.h:13
metrics
Definition:
includes/opentelemetry/metrics/async_instruments.h:10
Privacy Policy
|
Your Privacy Choices
|
Terms of Service
|
Accessibility
|
Corporate Policies
|
Product Security
|
Contact
© 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
NVIDIA Confidential | Subject to Change | For test and development only.
Wed Oct 28 2026 12:02:00 | PR-09318-R32