commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne" <>
Subject Re: [Math] [Collections] time-based window statistics
Date Mon, 21 Mar 2005 22:49:21 GMT
----- Original Message ----- 
From: "Paul Smith" <>
> 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 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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message