All Downloads are FREE. Search and download functionalities are using the official Maven repository.

se.l4.vibe.percentile.PercentileSnapshot Maven / Gradle / Ivy

There is a newer version: 0.4.0
Show newest version
package se.l4.vibe.percentile;

import se.l4.vibe.probes.ModifiableData;

/**
 * Snapshot of the state of a {@link PercentileCounter}.
 * 
 * @author Andreas Holstenson
 *
 */
public interface PercentileSnapshot
	extends ModifiableData
{
	/**
	 * Get the total value measured.
	 * 
	 * @return
	 */
	long getTotal();
	
	/**
	 * Get how many times we have measured.
	 * 
	 * @return
	 */
	long getSamples();
	
	/**
	 * Estimate the value of the given percentile. This gives the
	 * maximum upper bound if the {@link PercentileCounter} uses
	 * some form of ranges.
	 * 
	 * @param percentile
	 * @return
	 */
	long estimatePercentile(int percentile);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy