public enum ReturnPeriod extends Enum<ReturnPeriod>
Each identifier is structured as follows, for example PE2IN50:
annualRate()).duration() ).Note that the Mfds class includes useful static utilities for
working with Poisson probabilities, rates, and time spans.
Mfds| Enum Constant and Description |
|---|
PE10IN50
A 10% probability of exceedance in 50 years.
|
PE1IN100
A 1% probability of exceedance in 100 years.
|
PE1IN1000
A 1% probability of exceedance in 1,000 years.
|
PE1IN10000
A 1% probability of exceedance in 10,000 years.
|
PE1IN50
A 1% probability of exceedance in 50 years.
|
PE2IN50
A 2% probability of exceedance in 50 years.
|
PE40IN50
A 40% probability of exceedance in 50 years.
|
PE5IN50
A 5% probability of exceedance in 50 years.
|
| Modifier and Type | Method and Description |
|---|---|
double |
annualRate()
Return the annual rate of occurrence represented by this time period.
|
int |
duration()
Return the duration (number of years spanned) by this return period.
|
String |
toString() |
static ReturnPeriod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReturnPeriod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReturnPeriod PE1IN10000
public static final ReturnPeriod PE1IN1000
public static final ReturnPeriod PE1IN100
public static final ReturnPeriod PE1IN50
public static final ReturnPeriod PE2IN50
public static final ReturnPeriod PE5IN50
public static final ReturnPeriod PE10IN50
public static final ReturnPeriod PE40IN50
public static ReturnPeriod[] values()
for (ReturnPeriod c : ReturnPeriod.values()) System.out.println(c);
public static ReturnPeriod valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<ReturnPeriod>public double annualRate()
public int duration()