| Class | EventContainer |
| In: |
RainEvents.rb
|
| Parent: | Object |
Parse rainfall events from hourly rain data files from the NCDC, and provide useful general and event-based statistics.
EventContainer, as the name implies, contains Event objects to form a rainfall record. EventContainer is responsible for knowing the inter-event time definition (IETD) for the series. The IETD is what determines how many hours without rain are considered to seperate 2 consecutive events.
If you are not using the supplied RainDataParser class, then you will need to write your own parsing routines to extract meaningful data from your input source.
Please note that this class is not meant to be a stand-alone solution, therefore, I will not describe in detail how to parse your records into events.
See the Rdoc documentation for more information.
Travis Lee Branham, Undergraduate, Computer Science Dept., The University of the District of Columbia
Advisor: Pradeep K. Behera, Ph.D, P.E., Associate Professor, Civil Engineering Dept., The University of the District of Columbia
Copyright (c) 2007 by Travis Lee Branham Licensed under the same terms as Ruby.
Version 0.1.1 Date: August 14, 2007
ex_vars has 2 jobs:
*1. Calculate the variables used in the exponential PDF for each of the 4 parameters:
* Duration (Lambda)
* Volume (Zeta)
* Intensity (Beta)
* Inter-event time (Psi)
*2. Return the proper exponential PDF variable for the desired parameter.
Calling ex_vars with recalc = true will force a re-calculation of the exponential PDF variables for all of the 4 parameters.
sd has 2 jobs:
*1. Calculate the standard deviation for each of the 4 parameters:
* Duration
* Volume
* Intensity
* Inter-event time
*2. Return the standard deviation for the desired parameter.
Calling sd with recalc = true will force a re-calculation of the standard deviations for all of the 4 parameters.