private double get95PercentileValue(Range range) throws IOException { try { final DataProcessor dproc = processData(range); // 95th percentile et non un autre percentile par choix return dproc.get95Percentile("average"); } catch (final RrdException e) { throw createIOException(e); } }
/** * Same as {@link #get95Percentile(String)}, but for a set of values calculated with the given * RPN expression. * * @param rpnExpression RRDTool-like RPN expression * @return 95-percentile * @throws RrdException Thrown if invalid RPN expression is supplied */ public double getRpn95Percentile(String rpnExpression) throws RrdException { DataProcessor dataProcessor = createDataProcessor(rpnExpression); return dataProcessor.get95Percentile(RPN_SOURCE_NAME); }
/** * Used by ISPs which charge for bandwidth utilization on a "95th percentile" basis. * <p> * The 95th percentile is the highest source value left when the top 5% of a numerically sorted set * of source data is discarded. It is used as a measure of the peak value used when one discounts * a fair amount for transitory spikes. This makes it markedly different from the average. * <p> * Read more about this topic at: * <a href="http://www.red.net/support/resourcecentre/leasedline/percentile.php">Rednet</a> or<br> * <a href="http://www.bytemark.co.uk/support/tech/95thpercentile.html">Bytemark</a>. * * @param dsName Datasource name * @return 95th percentile of fetched source values * @throws RrdException Thrown if invalid source name is supplied */ public double get95Percentile(String dsName) throws RrdException { DataProcessor dataProcessor = createDataProcessor(null); return dataProcessor.get95Percentile(dsName); }
System.out.println("\n95-percentile for X: " + Util.formatDouble(dp.get95Percentile("X"))); System.out.println("95-percentile for Y: " + Util.formatDouble(dp.get95Percentile("Y")));
/** * Same as {@link #get95Percentile(String)}, but for a set of values calculated with the given * RPN expression. * * @param rpnExpression RRDTool-like RPN expression * @return 95-percentile * @throws RrdException Thrown if invalid RPN expression is supplied */ public double getRpn95Percentile(String rpnExpression) throws RrdException { DataProcessor dataProcessor = createDataProcessor(rpnExpression); return dataProcessor.get95Percentile(RPN_SOURCE_NAME); }
/** * Used by ISPs which charge for bandwidth utilization on a "95th percentile" basis.<p> * <p/> * The 95th percentile is the highest source value left when the top 5% of a numerically sorted set * of source data is discarded. It is used as a measure of the peak value used when one discounts * a fair amount for transitory spikes. This makes it markedly different from the average.<p> * <p/> * Read more about this topic at:<p> * <a href="http://www.red.net/support/resourcecentre/leasedline/percentile.php">Rednet</a> or<br> * <a href="http://www.bytemark.co.uk/support/tech/95thpercentile.html">Bytemark</a>. * * @param dsName Datasource name * @return 95th percentile of fetched source values * @throws RrdException Thrown if invalid source name is supplied */ public double get95Percentile(String dsName) throws RrdException { DataProcessor dataProcessor = createDataProcessor(null); return dataProcessor.get95Percentile(dsName); }
private double get95PercentileValue(Range range) throws IOException { try { final DataProcessor dproc = processData(range); // 95th percentile et non un autre percentile par choix return dproc.get95Percentile("average"); } catch (final RrdException e) { throw createIOException(e); } }
System.out.println("\n95-percentile for X: " + Util.formatDouble(dp.get95Percentile("X"))); System.out.println("95-percentile for Y: " + Util.formatDouble(dp.get95Percentile("Y")));