Skip to content

Commit

Permalink
Fix typos in HistogramData.java and HistogramDataTest.java (#29105)
Browse files Browse the repository at this point in the history
  • Loading branch information
viveksumanth committed Oct 23, 2023
1 parent 0b246c4 commit 683fbd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public static HistogramData linear(double start, double width, int numBuckets) {
}

/**
* Returns a histogram object wiht exponential boundaries. The input parameter {@code scale}
* Returns a histogram object with exponential boundaries. The input parameter {@code scale}
* determines a coefficient 'base' which species bucket boundaries.
*
* <pre>
Expand Down Expand Up @@ -381,7 +381,7 @@ private int getBucketIndexNegativeScale(int value) {
return getBucketIndexZeroScale(value) >> (-getScale());
}

// This method is valid for all 'scale' values but we fallback to more effecient methods for
// This method is valid for all 'scale' values but we fallback to more efficient methods for
// non-positive scales.
// For a value>base we would like to find an i s.t. :
// base^i <= value < base^(i+1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public void testIncrementBucketCountByIndex() {

// The following tests cover exponential buckets.
@Test
public void testExponentialBuckets_PostiveScaleRecord() {
public void testExponentialBuckets_PositiveScaleRecord() {
// Buckets will be:
// Index Range
// Underflow (-inf, 0)
Expand Down

0 comments on commit 683fbd6

Please sign in to comment.