smile.sort
Class IQAgent
- java.lang.Object
-
- smile.sort.IQAgent
-
public class IQAgent extends java.lang.ObjectThis class provide a robust and extremely fast algorithm to estimate arbitary quantile values from a continuing stream of data values. Basically, the data values fly by in a stream. We look at each value only once and do a constant-time process on it. From time to time, we can use this class to report any arbitary p-quantile value of the data that we have seen thus far.
-
-
Constructor Summary
Constructors Constructor and Description IQAgent()Constructor.IQAgent(int nbuf)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(double datum)Assimilate a new value from the stream.doublequantile(double p)Returns the estimated p-quantile for the data seen so far.
-
DataMelt 3.0 © DataMelt by jWork.ORG