Package net.jqwik.api.statistics
Klasse Histogram
java.lang.Object
net.jqwik.api.statistics.Histogram
- Alle implementierten Schnittstellen:
StatisticsReportFormat
- Bekannte direkte Unterklassen:
NumberRangeHistogram
@API(status=EXPERIMENTAL,
since="1.3.0")
public class Histogram
extends Object
implements StatisticsReportFormat
A statistics report format to display collected statistics entries as a histogram
-
Verschachtelte Klassen - Übersicht
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected List
<Histogram.Bucket> cluster
(List<StatisticsEntry> entries) Cluster entries into buckets.protected Comparator
<? super StatisticsEntry> Determine how entries are being sorted from top to bottom.formatReport
(List<StatisticsEntry> entries) Return a list of report lines.protected String
label
(StatisticsEntry entry) Determine how entries are being labelled in the histogram.protected String
Change the displayed name of the label columnprotected int
Determine how many block characters are maximally used to draw the distribution.
-
Konstruktordetails
-
Histogram
public Histogram()
-
-
Methodendetails
-
formatReport
Beschreibung aus Schnittstelle kopiert:StatisticsReportFormat
Return a list of report lines. Often, one line will represent one entry but that must not necessarily be the case.- Angegeben von:
formatReport
in SchnittstelleStatisticsReportFormat
- Gibt zurück:
- All report lines. No trailing `CR` or `LF` characters are needed.
- Siehe auch:
-
maxDrawRange
protected int maxDrawRange()Determine how many block characters are maximally used to draw the distribution. The more you have the further the histogram extends to the right.Can be overridden.
- Gibt zurück:
- A positive number. Default is 80.
-
comparator
Determine how entries are being sorted from top to bottom.Can be overridden.
- Gibt zurück:
- A comparator instance.
-
label
Determine how entries are being labelled in the histogram.Can be overridden.
- Parameter:
entry
-- Gibt zurück:
- A non-null string
-
cluster
Cluster entries into buckets.Override if entries should be aggregated into buckets to display in histogram.
- Parameter:
entries
- An already sorted list of entries- Gibt zurück:
- A sorted list of buckets
-
labelColumnHeader
Change the displayed name of the label column- Gibt zurück:
- the string to show as header of the column
-