rename 'percentile' plots to 'cumulative distribution'

This commit is contained in:
2019-05-12 14:30:16 +02:00
parent 1f144846db
commit 2eb2a69c17
5 changed files with 21 additions and 12 deletions

View File

@@ -11,7 +11,7 @@ import java.nio.file.Path;
import org.lucares.collections.LongList;
public class PercentileCustomAggregator implements CustomAggregator {
public class CumulativeDistributionCustomAggregator implements CustomAggregator {
private final static int POINTS = 500;
@@ -19,7 +19,7 @@ public class PercentileCustomAggregator implements CustomAggregator {
private final Path tmpDir;
public PercentileCustomAggregator(final Path tmpDir) {
public CumulativeDistributionCustomAggregator(final Path tmpDir) {
this.tmpDir = tmpDir;
}

View File

@@ -5,22 +5,22 @@ import java.util.Collection;
import org.lucares.recommind.logs.DataSeries;
public class PercentileAggregate implements AggregateHandler {
public class CumulativeDistributionHandler implements AggregateHandler {
@Override
public CustomAggregator createCustomAggregator(final Path tmpDir, final long fromEpochMilli,
final long toEpochMilli) {
return new PercentileCustomAggregator(tmpDir);
return new CumulativeDistributionCustomAggregator(tmpDir);
}
public PercentileAggregate() {
public CumulativeDistributionHandler() {
}
@Override
public void addGnuplotDefinitions(final StringBuilder result, final String separator,
final Collection<DataSeries> dataSeries) {
appendln(result, "set x2label \"Percentile\"");
appendln(result, "set x2label \"Cumulative Distribution\"");
appendln(result, "set format x2 \"%.0f%%\"");
appendln(result, "set x2tics 5");
appendln(result, "set x2range [\"0\":\"100\"]");