B C D E F H I L M N P R S T U
All Classes All Packages
All Classes All Packages
All Classes All Packages
B
- bucketCountFormatter() - Method in class com.pervasivecode.utils.stats.histogram.HistogramFormat
-
A BiFunction that specifies how a bucket count value should be displayed.
- bucketIndexFor(T) - Method in interface com.pervasivecode.utils.stats.histogram.BucketSelector
-
Determine the index of the bucket that a specified value should be counted in.
- bucketIndexFor(T) - Method in class com.pervasivecode.utils.stats.histogram.FunctionBasedBucketSelector
- bucketIndexFor(T) - Method in class com.pervasivecode.utils.stats.histogram.IrregularSetBucketSelector
- BucketingSystem<T> - Interface in com.pervasivecode.utils.stats.histogram
-
Common methods for things that put values into a fixed number of adjacent intervals.
- BucketSelector<T> - Interface in com.pervasivecode.utils.stats.histogram
-
This object determines which histogram bucket a particular value belongs in.
- BucketSelectors - Class in com.pervasivecode.utils.stats.histogram
-
BucketSelector factory methods for basic bucketing strategies.
- bucketUpperBound(int) - Method in interface com.pervasivecode.utils.stats.histogram.BucketingSystem
-
Get the upper-bound value of the specified bucket.
- bucketUpperBound(int) - Method in class com.pervasivecode.utils.stats.histogram.ConcurrentHistogram
- bucketUpperBound(int) - Method in class com.pervasivecode.utils.stats.histogram.FunctionBasedBucketSelector
- bucketUpperBound(int) - Method in class com.pervasivecode.utils.stats.histogram.ImmutableHistogram
- bucketUpperBound(int) - Method in class com.pervasivecode.utils.stats.histogram.IrregularSetBucketSelector
- build() - Method in class com.pervasivecode.utils.stats.histogram.HistogramFormat.Builder
- build() - Method in class com.pervasivecode.utils.stats.histogram.ImmutableHistogram.Builder
-
Validate the countByBucket and bucketUpperBounds values and create an ImmutableHistogram.
- build() - Method in class com.pervasivecode.utils.stats.HorizontalBarGraph.Builder
- builder() - Static method in class com.pervasivecode.utils.stats.histogram.HistogramFormat
-
Create a new
HistogramFormat.Builder
instance. - builder() - Static method in class com.pervasivecode.utils.stats.histogram.ImmutableHistogram
-
Obtain a builder that allows construction of a new instance.
- builder() - Static method in class com.pervasivecode.utils.stats.HorizontalBarGraph
- builder(ImmutableHistogram<V>) - Static method in class com.pervasivecode.utils.stats.histogram.ImmutableHistogram
-
Obtain a builder that allows construction of a new instance, prepopulated with values from another instance.
- builder(HorizontalBarGraph) - Static method in class com.pervasivecode.utils.stats.HorizontalBarGraph
- Builder() - Constructor for class com.pervasivecode.utils.stats.histogram.HistogramFormat.Builder
- Builder() - Constructor for class com.pervasivecode.utils.stats.histogram.ImmutableHistogram.Builder
- Builder() - Constructor for class com.pervasivecode.utils.stats.HorizontalBarGraph.Builder
C
- com.pervasivecode.utils.stats - package com.pervasivecode.utils.stats
- com.pervasivecode.utils.stats.histogram - package com.pervasivecode.utils.stats.histogram
- ConcurrentHistogram<T> - Class in com.pervasivecode.utils.stats.histogram
-
A thread-safe Histogram based on the
AtomicLongArray
class. - ConcurrentHistogram(BucketSelector<T>) - Constructor for class com.pervasivecode.utils.stats.histogram.ConcurrentHistogram
- copyOf(Histogram<V>) - Static method in class com.pervasivecode.utils.stats.histogram.ImmutableHistogram
-
Make an immutable copy of another histogram with the same value type, size, bucket upper bounds and value counts.
- countInBucket(int) - Method in class com.pervasivecode.utils.stats.histogram.ConcurrentHistogram
- countInBucket(int) - Method in interface com.pervasivecode.utils.stats.histogram.Histogram
-
Get the number of elements that were counted in the specified bucket.
- countInBucket(int) - Method in class com.pervasivecode.utils.stats.histogram.ImmutableHistogram
- countValue(T) - Method in class com.pervasivecode.utils.stats.histogram.ConcurrentHistogram
- countValue(T) - Method in interface com.pervasivecode.utils.stats.histogram.MutableHistogram
-
Count the specified value by assigning it to a bucket and incrementing the stored count of values that belong to that bucket.
D
- DurationEstimator - Interface in com.pervasivecode.utils.stats
-
This object can estimate the rate at which a repeatedly set progress value is currently changing, and can estimate how long it will take for that value to reach a specified target value.
E
- estimatedRateAsAmountPerSecond() - Method in interface com.pervasivecode.utils.stats.DurationEstimator
-
Return an estimate of the current rate of progress, in terms of user-defined progress units per second.
- estimatedRateAsAmountPerSecond() - Method in class com.pervasivecode.utils.stats.SimpleDurationEstimator
-
Get an estimate of the rate of change of the progress amount per second.
- estimateTimeToProcessAmount(long) - Method in interface com.pervasivecode.utils.stats.DurationEstimator
-
Return an estimate of the amount of time that must elapse starting from the current time, in order for the specified amount to be processed.
- estimateTimeToProcessAmount(long) - Method in class com.pervasivecode.utils.stats.SimpleDurationEstimator
-
Using the current estimatedRateAsAmountPerSecond, predict how much time would be needed to process a specified amount starting now.
- exponential(double, double, int) - Static method in class com.pervasivecode.utils.stats.histogram.BucketSelectors
-
Get a BucketSelector that has upper bound values that are
double
values that are part of an exponential series. - exponentialLong(double, double, int) - Static method in class com.pervasivecode.utils.stats.histogram.BucketSelectors
-
Get a BucketSelector that has upper bound values that are
long
values that are part of an exponential series.
F
- format() - Method in class com.pervasivecode.utils.stats.HorizontalBarGraph
- format(Histogram<T>) - Method in class com.pervasivecode.utils.stats.histogram.HistogramFormatter
- from(Histogram<V>) - Static method in class com.pervasivecode.utils.stats.histogram.ImmutableHistogram
-
Return an ImmutableHistogram with the same contents as the
histogram
parameter. - FunctionBasedBucketSelector<T> - Class in com.pervasivecode.utils.stats.histogram
-
A BucketSelector based on a pair of
Function
s, one of which converts values into bucket indices, the other of which converts bucket indices into upper-bound values. - FunctionBasedBucketSelector(Function<T, Integer>, Function<Integer, T>, int) - Constructor for class com.pervasivecode.utils.stats.histogram.FunctionBasedBucketSelector
H
- Histogram<T> - Interface in com.pervasivecode.utils.stats.histogram
-
This is a data structure that holds frequency counts of values for use in a histogram.
- HistogramBucketCountFormatters - Class in com.pervasivecode.utils.stats.histogram
-
Factory methods for use with
HistogramFormat.Builder.setBucketCountFormatter(BiFunction)
. - HistogramFormat<T> - Class in com.pervasivecode.utils.stats.histogram
-
Configuration for a
HistogramFormatter
. - HistogramFormat() - Constructor for class com.pervasivecode.utils.stats.histogram.HistogramFormat
- HistogramFormat.Builder<T> - Class in com.pervasivecode.utils.stats.histogram
-
This object is used to construct a HistogramFormat instance.
- HistogramFormatter<T> - Class in com.pervasivecode.utils.stats.histogram
-
Format
Histogram
contents for a text display. - HistogramFormatter(HistogramFormat<T>) - Constructor for class com.pervasivecode.utils.stats.histogram.HistogramFormatter
-
Create a HistogramFormatter that formats values according to the settings in the
format
parameter. - Histograms - Class in com.pervasivecode.utils.stats.histogram
-
Utility methods for working with Histograms.
- HorizontalBarGraph - Class in com.pervasivecode.utils.stats
- HorizontalBarGraph() - Constructor for class com.pervasivecode.utils.stats.HorizontalBarGraph
- HorizontalBarGraph.Builder - Class in com.pervasivecode.utils.stats
I
- ImmutableHistogram<T> - Class in com.pervasivecode.utils.stats.histogram
-
An immutable representation of a Histogram.
- ImmutableHistogram() - Constructor for class com.pervasivecode.utils.stats.histogram.ImmutableHistogram
- ImmutableHistogram.Builder<T> - Class in com.pervasivecode.utils.stats.histogram
-
An object that can be used to create an
ImmutableHistogram
. - IrregularSetBucketSelector<T> - Class in com.pervasivecode.utils.stats.histogram
-
This BucketSelector counts values in buckets that have an irregular set of bucket upper bound values, such as {1, 5, 7}, that are most easily expressed explicitly, rather than by a formula that generates a series of upper bound values.
- IrregularSetBucketSelector(SortedSet<T>) - Constructor for class com.pervasivecode.utils.stats.histogram.IrregularSetBucketSelector
-
Create a IrregularSetBucketSelector from a set of upper-bound values.
L
- labelForSingularBucket() - Method in class com.pervasivecode.utils.stats.histogram.HistogramFormat
-
The string label to use when the Histogram contains exactly one bucket.
- linearLongValues(long, long, int) - Static method in class com.pervasivecode.utils.stats.histogram.BucketSelectors
-
Get a BucketSelector that has upper bound values that are evenly distributed between a smallest and largest value.
M
- maxWidth() - Method in class com.pervasivecode.utils.stats.histogram.HistogramFormat
-
The maximum width of the formatted representation, in characters.
- MutableHistogram<T> - Interface in com.pervasivecode.utils.stats.histogram
-
This is a mutable version of the Histogram interface, adding a method for counting additional values.
N
- numBuckets() - Method in interface com.pervasivecode.utils.stats.histogram.BucketingSystem
-
Get the total number of buckets.
- numBuckets() - Method in class com.pervasivecode.utils.stats.histogram.ConcurrentHistogram
- numBuckets() - Method in class com.pervasivecode.utils.stats.histogram.FunctionBasedBucketSelector
- numBuckets() - Method in class com.pervasivecode.utils.stats.histogram.ImmutableHistogram
- numBuckets() - Method in class com.pervasivecode.utils.stats.histogram.IrregularSetBucketSelector
P
- percentFormatter(NumberFormat) - Static method in class com.pervasivecode.utils.stats.histogram.HistogramBucketCountFormatters
-
Make a BiFunction that can be used to format histogram bucket count values as a percentage of the total number counted by the histogram.
- percentFormatter(Locale) - Static method in class com.pervasivecode.utils.stats.histogram.HistogramBucketCountFormatters
-
Make a BiFunction that can be used to format histogram bucket count values as a percentage of the total number counted by the histogram.
- powerOf2LongValues(int, int) - Static method in class com.pervasivecode.utils.stats.histogram.BucketSelectors
-
Get a BucketSelector that has upper bound values that are consecutive whole-number powers of 2.
R
- recordAmountSoFar(long) - Method in interface com.pervasivecode.utils.stats.DurationEstimator
-
Set the progress counter to the specified value.
- recordAmountSoFar(long) - Method in class com.pervasivecode.utils.stats.SimpleDurationEstimator
-
Replace the existing progress amount value with a new one.
S
- setBarPart(char) - Method in class com.pervasivecode.utils.stats.HorizontalBarGraph.Builder
- setBucketCountFormatter(BiFunction<Long, Long, String>) - Method in class com.pervasivecode.utils.stats.histogram.HistogramFormat.Builder
- setBucketUpperBounds(List<T>) - Method in class com.pervasivecode.utils.stats.histogram.ImmutableHistogram.Builder
-
Set the upper bounds of each of the buckets that has an upper bound, all at once.
- setCountByBucket(List<Long>) - Method in class com.pervasivecode.utils.stats.histogram.ImmutableHistogram.Builder
-
Set the count of values per bucket, all at once.
- setFormattedMagnitudes(List<String>) - Method in class com.pervasivecode.utils.stats.HorizontalBarGraph.Builder
- setLabelForSingularBucket(String) - Method in class com.pervasivecode.utils.stats.histogram.HistogramFormat.Builder
- setLabels(List<String>) - Method in class com.pervasivecode.utils.stats.HorizontalBarGraph.Builder
- setMagnitudes(List<Long>) - Method in class com.pervasivecode.utils.stats.HorizontalBarGraph.Builder
- setMaxWidth(int) - Method in class com.pervasivecode.utils.stats.histogram.HistogramFormat.Builder
- setNumRows(int) - Method in class com.pervasivecode.utils.stats.HorizontalBarGraph.Builder
- setUpperBoundValueFormatter(Function<T, String>) - Method in class com.pervasivecode.utils.stats.histogram.HistogramFormat.Builder
- setWidth(int) - Method in class com.pervasivecode.utils.stats.HorizontalBarGraph.Builder
- SimpleDurationEstimator - Class in com.pervasivecode.utils.stats
-
This is a trivial DurationEstimator that just uses the total amount processed divided by the total time elapsed to estimate the rate (that is, it's blind to any short-term fluctuations in rate that may occur, and only examines the entire process).
- SimpleDurationEstimator(TimeSource) - Constructor for class com.pervasivecode.utils.stats.SimpleDurationEstimator
-
Create and start a SimpleDurationEstimator, with an initial progress value of zero.
- SimpleDurationEstimator(TimeSource, long) - Constructor for class com.pervasivecode.utils.stats.SimpleDurationEstimator
-
Create and start a SimpleDurationEstimator, with an initial progress value specified by the caller.
T
- totalCount() - Method in class com.pervasivecode.utils.stats.histogram.ImmutableHistogram
-
Get a total of the bucket counts.
- transform(BucketSelector<T>, Function<V, T>, Function<T, V>) - Static method in class com.pervasivecode.utils.stats.histogram.BucketSelectors
-
Wrap a BucketSelector that handles one value type inside one that handles a different value type, using a pair of
Function
s that convert individual values from one type to the other. - transformValues(Histogram<T>, Function<T, V>) - Static method in class com.pervasivecode.utils.stats.histogram.Histograms
-
Transform a histogram's upper bound values using a Function.
U
- upperBoundValueFormatter() - Method in class com.pervasivecode.utils.stats.histogram.HistogramFormat
-
A function that formats a bucket upper bound value as a String.
All Classes All Packages