Home
last modified time | relevance | path

Searched refs:bucketBoundaries (Results 1 – 10 of 10) sorted by relevance

/external/opencensus-java/api/src/main/java/io/opencensus/metrics/export/
DDistribution.java160 public static BucketOptions explicitOptions(List<Double> bucketBoundaries) { in explicitOptions() argument
161 return ExplicitOptions.create(bucketBoundaries); in explicitOptions()
201 private static ExplicitOptions create(List<Double> bucketBoundaries) { in create() argument
202 Utils.checkNotNull(bucketBoundaries, "bucketBoundaries"); in create()
204 Collections.unmodifiableList(new ArrayList<Double>(bucketBoundaries)); in create()
209 private static void checkBucketBoundsAreSorted(List<Double> bucketBoundaries) { in checkBucketBoundsAreSorted() argument
210 if (bucketBoundaries.size() >= 1) { in checkBucketBoundsAreSorted()
211 double previous = Utils.checkNotNull(bucketBoundaries.get(0), "bucketBoundary"); in checkBucketBoundsAreSorted()
213 for (int i = 1; i < bucketBoundaries.size(); i++) { in checkBucketBoundsAreSorted()
214 double next = Utils.checkNotNull(bucketBoundaries.get(i), "bucketBoundary"); in checkBucketBoundsAreSorted()
/external/opencensus-java/api/src/test/java/io/opencensus/stats/
DBucketBoundariesTest.java40 BucketBoundaries bucketBoundaries = BucketBoundaries.create(buckets); in testConstructBoundaries() local
41 assertThat(bucketBoundaries.getBoundaries()).isEqualTo(buckets); in testConstructBoundaries()
50 BucketBoundaries bucketBoundaries = BucketBoundaries.create(original); in testBoundariesDoesNotChangeWithOriginalList() local
54 assertThat(bucketBoundaries.getBoundaries()).isNotEqualTo(original); in testBoundariesDoesNotChangeWithOriginalList()
55 assertThat(bucketBoundaries.getBoundaries()).isEqualTo(expected); in testBoundariesDoesNotChangeWithOriginalList()
74 BucketBoundaries bucketBoundaries = BucketBoundaries.create(buckets); in testNoBoundaries() local
75 assertThat(bucketBoundaries.getBoundaries()).isEqualTo(buckets); in testNoBoundaries()
DAggregationTest.java45 BucketBoundaries bucketBoundaries = BucketBoundaries.create(Arrays.asList(0.1, 2.2, 33.3)); in testCreateDistribution() local
46 Distribution distribution = Distribution.create(bucketBoundaries); in testCreateDistribution()
47 assertThat(distribution.getBucketBoundaries()).isEqualTo(bucketBoundaries); in testCreateDistribution()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/
DMutableAggregation.java265 private final BucketBoundaries bucketBoundaries; field in MutableAggregation.MutableDistribution
273 private MutableDistribution(BucketBoundaries bucketBoundaries) { in MutableDistribution() argument
274 this.bucketBoundaries = bucketBoundaries; in MutableDistribution()
275 int buckets = bucketBoundaries.getBoundaries().size() + 1; in MutableDistribution()
280 this.exemplars = bucketBoundaries.getBoundaries().isEmpty() ? null : new Exemplar[buckets]; in MutableDistribution()
288 static MutableDistribution create(BucketBoundaries bucketBoundaries) { in create() argument
289 checkNotNull(bucketBoundaries, "bucketBoundaries should not be null."); in create()
290 return new MutableDistribution(bucketBoundaries); in create()
319 for (; bucket < bucketBoundaries.getBoundaries().size(); bucket++) { in add()
320 if (value < bucketBoundaries.getBoundaries().get(bucket)) { in add()
[all …]
/external/opencensus-java/api/src/main/java/io/opencensus/stats/
DBucketBoundaries.java44 public static final BucketBoundaries create(List<Double> bucketBoundaries) { in create() argument
45 Utils.checkNotNull(bucketBoundaries, "bucketBoundaries"); in create()
46 List<Double> bucketBoundariesCopy = new ArrayList<Double>(bucketBoundaries); // Deep copy. in create()
DAggregation.java182 public static Distribution create(BucketBoundaries bucketBoundaries) { in create() argument
183 Utils.checkNotNull(bucketBoundaries, "bucketBoundaries"); in create()
184 return new AutoValue_Aggregation_Distribution(bucketBoundaries); in create()
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/stats/
DRecordUtilsTest.java78 BucketBoundaries bucketBoundaries = BucketBoundaries.create(Arrays.asList(-1.0, 0.0, 1.0)); in createMutableAggregation() local
110 Distribution.create(bucketBoundaries), MEASURE_DOUBLE); in createMutableAggregation()
DMutableAggregationTest.java78 BucketBoundaries bucketBoundaries = BucketBoundaries.create(Arrays.asList(0.1, 2.2, 33.3)); in testCreateEmpty() local
79 MutableDistribution mutableDistribution = MutableDistribution.create(bucketBoundaries); in testCreateEmpty()
/external/opencensus-java/exporters/stats/stackdriver/src/main/java/io/opencensus/exporter/stats/stackdriver/
DStackdriverExportUtils.java417 DistributionData distributionData, BucketBoundaries bucketBoundaries) {
419 .setBucketOptions(createBucketOptions(bucketBoundaries))
435 static BucketOptions createBucketOptions(BucketBoundaries bucketBoundaries) {
437 .setExplicitBuckets(Explicit.newBuilder().addAllBounds(bucketBoundaries.getBoundaries()))
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/
DStatszZPageHandler.java529 List<Double> bucketBoundaries, in emitHistogramBuckets() argument
534 bucketBoundaries.size() == bucketCounts.size() - 1, in emitHistogramBuckets()
543 double low = i == 0 ? Double.NEGATIVE_INFINITY : bucketBoundaries.get(i - 1); in emitHistogramBuckets()
545 i == bucketCounts.size() - 1 ? Double.POSITIVE_INFINITY : bucketBoundaries.get(i); in emitHistogramBuckets()