@Override public String toString() { return String.format("%s[%s..%s, %s]", this.getClass().getSimpleName(), Formats.formatLarge(this.lowerEstimate), Formats.formatLarge(this.upperEstimate), Formats.formatPercentage(this.correctnessProb) ); } }
@Override public String toString() { return String.format( "(%,d..%,d, %s)", this.getLowerEstimate(), this.getUpperEstimate(), Formats.formatPercentage(this.getCorrectnessProbability()) ); } }
@SuppressWarnings("unused") public String toGMeanString() { final long geometricMeanEstimate = this.getGeometricMeanEstimate(); final double dev = geometricMeanEstimate == 0 ? 0d : this.getUpperEstimate() / (double) geometricMeanEstimate; return String.format("(%s, d=%.1f, p=%s)", Formats.formatDuration(geometricMeanEstimate, true), dev, Formats.formatPercentage(this.getCorrectnessProbability())); } }
@SuppressWarnings("unused") public String toIntervalString(boolean isProvideRaw) { return String.format("(%s .. %s, p=%s)", Formats.formatDuration(this.getLowerEstimate(), isProvideRaw), Formats.formatDuration(this.getUpperEstimate(), isProvideRaw), Formats.formatPercentage(this.getCorrectnessProbability())); }