public class DurationPeriod
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
double[] |
_durationPercent |
double[] |
_values |
static int |
ANNUAL |
static java.lang.String[] |
DURATION_PERIOD_STRINGS |
static int |
MONTHLY |
static int |
OTHER |
static int |
QUARTERLY |
static int |
UNDEFINED |
| Constructor and Description |
|---|
DurationPeriod(int type,
java.lang.String startOfPeriod,
java.lang.String endOfPeriod)
type - type of period (ANNUAL, QUARTERLY, MONTHLY, OTHER )
startOfPeriod - date string of type "01JAN" (no year) defining beginning of period
endOfPeriod - date string of type "31MAR" (no year) defining end of period
|
DurationPeriod(java.lang.String name,
java.lang.String startOfPeriod,
java.lang.String endOfPeriod)
Contructor for user defined period types
name - name for user defined duration period
startOfPeriod - date string of type "01JAN" (no year) defining beginning of period
endOfPeriod - date string of type "31MAR" (no year) defining end of period
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearArrays()
release memory
|
PairedDataContainer |
compute(double[] xintervals,
int horizontalAxis)
Interpolate flow/stage duration result at probability intervalues
|
PairedDataContainer |
computeAll() |
static double[] |
computeBinLimits(double[] values,
int numberBins,
boolean useLog) |
PairedDataContainer |
computeBins(double[] maxBinValue,
double[] plottingPoints,
int horizontalAxis) |
boolean |
computeDuration()
Compute flow/stage duration array
P = 100 * [ M / (n + 1) ]
P = the probability that a given flow will be equaled or exceeded (% of time)
M = the ranked position on the listing (dimensionless)
n = the number of events for period of record (dimensionless)
|
boolean |
filterTimeSeries(TimeSeriesContainer tsc)
Filter the time series for the times in the duration period
|
java.lang.String |
getInterval() |
java.lang.String |
getName() |
void |
setInterval(java.lang.String interval) |
void |
setName(java.lang.String name) |
void |
sortDescending() |
public static final int UNDEFINED
public static final int ANNUAL
public static final int QUARTERLY
public static final int MONTHLY
public static final int OTHER
public static final java.lang.String[] DURATION_PERIOD_STRINGS
public double[] _values
public double[] _durationPercent
public DurationPeriod(int type,
java.lang.String startOfPeriod,
java.lang.String endOfPeriod)
public DurationPeriod(java.lang.String name,
java.lang.String startOfPeriod,
java.lang.String endOfPeriod)
public boolean filterTimeSeries(TimeSeriesContainer tsc)
tsc - public void sortDescending()
public boolean computeDuration()
public static double[] computeBinLimits(double[] values,
int numberBins,
boolean useLog)
public PairedDataContainer computeBins(double[] maxBinValue, double[] plottingPoints, int horizontalAxis)
public PairedDataContainer computeAll()
public PairedDataContainer compute(double[] xintervals, int horizontalAxis)
public void setName(java.lang.String name)
public java.lang.String getName()
public void setInterval(java.lang.String interval)
public java.lang.String getInterval()
public void clearArrays()