commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne" <scolebou...@btopenworld.com>
Subject Re: [Math] [Collections] time-based window statistics
Date Mon, 21 Mar 2005 22:49:21 GMT
----- Original Message ----- 
From: "Paul Smith" <psmith@aconex.com>
> We have the need to track things in a data-rate format, like "indexes 
> operations/second" etc and stats similar to what is reported via the 
> 'uptime' command, with averages over a 1 minute, 5 minute, 15 minutes etc.
> Now I'm sure creating my own little API is not that hard, but it occured 
> to me that this or something similar has to have been done so many times 
> that someone has released a utility API to help.   There doesn't appear to 
> be any window-style collections in Jakarta Collections, and the 
> DescriptiveStats class in Math is very useful, but there's nothing 
> natively in there to do with time-based windows.

The closest I can come to help you is with Joda-Time 
http://joda-time.sourceforge.net. We have an Interval class with a contains 
method that would be useful in identifying whether an event was in a 
particular interval or not. We don't have any collections though.

Stephen


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message