nl_tokens: Returns a result for the given delay and epsilon ( error rate ) . Epsilon must be between 0 and 1 exclusively . See { @link DelayCalculator } for details .
pl_tokens: public static Result calculate ( long nanoseconds , float epsilon ) { if ( epsilon <= 0 || epsilon >= 1 ) throw new IllegalArgumentException ( "0 < epsilon < 1 not satisfied" ) ; long max_divider = ( int ) ( 1D / epsilon ) ; if ( nanoseconds < max_divider ) return new Result ( nanoseconds , 1 ) ; long interval = Math . <mask> ( MAX_INTERVAL , nanoseconds / max_divider ) ; long correction = nanoseconds / interval ; return new Result ( interval , correction ) ; }