saaps.util
Class Average

java.lang.Object
  |
  +--saaps.util.Average

public abstract class Average
extends java.lang.Object


Constructor Summary
Average()
           
 
Method Summary
static TimeSeries getFromDB(java.lang.String dboStr, java.util.Date sd, java.util.Date ed, long si, long w1, long w2, boolean ignoreNaN)
          Get a TimeSeries object from the database over the given interval and the given sampling rate and time resolution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Average

public Average()
Method Detail

getFromDB

public static TimeSeries getFromDB(java.lang.String dboStr,
                                   java.util.Date sd,
                                   java.util.Date ed,
                                   long si,
                                   long w1,
                                   long w2,
                                   boolean ignoreNaN)
Get a TimeSeries object from the database over the given interval and the given sampling rate and time resolution.

The time resolution is defined by the window [w1,w2] over which the averaging is made.

Example: Get ACE one minute data with 1 hour central averages.
TimeSeries ts = Average.getFromDB("ACEmagDB",sd,ed,si,w1,w2)
where sd and ed are the start and end dates (Date objects) and

Parameters:
dboStr - The name of the database object
sd - The start date
ed - The end date
si - Sample interval in milliseconds
w1 - Start of average window in milliseconds
w2 - End of average window in milliseconds
ignoreNaN - If true then ignore NaN before averaging