Merge "[TeX] Updated the comments for the Histogram class"

This commit is contained in:
Treehugger Robot
2023-02-09 10:38:16 +00:00
committed by Gerrit Code Review

View File

@@ -20,7 +20,7 @@ import android.annotation.NonNull;
import com.android.internal.util.FrameworkStatsLog; import com.android.internal.util.FrameworkStatsLog;
/** CounterHistogram encapsulates StatsD write API calls */ /** Histogram encapsulates StatsD write API calls */
public final class Histogram { public final class Histogram {
private final long mMetricIdHash; private final long mMetricIdHash;
@@ -42,10 +42,10 @@ public final class Histogram {
/*count*/ 1, binIndex); /*count*/ 1, binIndex);
} }
/** Used by CounterHistogram to map data sample to corresponding bin */ /** Used by Histogram to map data sample to corresponding bin */
public interface BinOptions { public interface BinOptions {
/** /**
* Returns bins count to be used by counter histogram * Returns bins count to be used by a histogram
* *
* @return bins count used to initialize Options, including overflow & underflow bins * @return bins count used to initialize Options, including overflow & underflow bins
* @hide * @hide
@@ -62,7 +62,7 @@ public final class Histogram {
int getBinForSample(float sample); int getBinForSample(float sample);
} }
/** Used by CounterHistogram to map data sample to corresponding bin for on uniform bins */ /** Used by Histogram to map data sample to corresponding bin for uniform bins */
public static final class UniformOptions implements BinOptions { public static final class UniformOptions implements BinOptions {
private final int mBinCount; private final int mBinCount;