|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.sha.earthquake.calc.recurInterval.EqkProbDistCalc
org.opensha.sha.earthquake.calc.recurInterval.BPT_DistCalc
public final class BPT_DistCalc
Title: BPT_DistCalc.java
Description:
.
| Field Summary |
|---|
| Fields inherited from class org.opensha.sha.earthquake.calc.recurInterval.EqkProbDistCalc |
|---|
adjustableParams, aperiodicity, APERIODICITY_PARAM_INFO, APERIODICITY_PARAM_NAME, aperiodicityParam, cdf, DEFAULT_APERIODICITY_PARAM_VAL, DEFAULT_DELTAX_PARAM_VAL, DEFAULT_DURATION_PARAM_VAL, DEFAULT_MEAN_PARAM_VAL, DEFAULT_NUMPOINTS_PARAM_VAL, DELTA_X_DEFAULT, DELTA_X_PARAM_INFO, DELTA_X_PARAM_NAME, deltaX, deltaX_Param, duration, DURATION_PARAM_INFO, DURATION_PARAM_NAME, durationParam, mean, MEAN_PARAM_INFO, MEAN_PARAM_NAME, meanParam, NAME, NUM_POINTS_PARAM_INFO, NUM_POINTS_PARAM_NAME, numPoints, numPointsParam, pdf, upToDate |
| Constructor Summary | |
|---|---|
BPT_DistCalc()
|
|
| Method Summary | |
|---|---|
protected void |
computeDistributions()
|
static double |
getCondProb(double mean,
double aperiodicity,
double timeSinceLast,
double duration)
This computed the conditional probability using Trapezoidal integration (slightly more accurrate that the WGCEP-2002 code, which this method is modeled after). |
double |
getSafeCondProb(double timeSinceLast,
double duration)
This is a version of the parent method getCondProb(*) that avoids numerical artifacts at high timeSinceLast. |
double |
getSafeTimeSinceLastCutoff()
The returns the maximum value of timeSinceLast (as discretized in the x-axis of the cdf) that is numerically safe (values above will return NaN from getSafeCondProb(*) due to numerical problems). |
static void |
main(String[] args)
Main method for running tests. |
void |
parameterChange(ParameterChangeEvent event)
Set the primitive types whenever a parameter changes |
void |
setAll(double mean,
double aperiodicity)
For this case deltaX defaults to 0.001*mean and numPoints is aperiodicity*10/deltaX+1 |
void |
setAll(double mean,
double aperiodicity,
double deltaX,
int numPoints)
|
void |
setAll(double mean,
double aperiodicity,
double deltaX,
int numPoints,
double duration)
|
| Methods inherited from class org.opensha.sha.earthquake.calc.recurInterval.EqkProbDistCalc |
|---|
fitToThisFunction, getAdjParams, getAperiodicity, getCDF, getCondProb, getCondProbFunc, getCondProbFunc, getHazFunc, getMean, getName, getPDF, initAdjParams |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BPT_DistCalc()
| Method Detail |
|---|
public void setAll(double mean,
double aperiodicity,
double deltaX,
int numPoints)
public void setAll(double mean,
double aperiodicity,
double deltaX,
int numPoints,
double duration)
mean - aperiodicity - timeSinceLast - duration - deltaX - numPoints -
public void setAll(double mean,
double aperiodicity)
mean - aperiodicity - timeSinceLast - duration - protected void computeDistributions()
public static double getCondProb(double mean,
double aperiodicity,
double timeSinceLast,
double duration)
timeSinceLast - - time since last eventrate - - average rate of eventsalpha - - coefficient of variation (technically corrrect??)duration - - forecast duration
public void parameterChange(ParameterChangeEvent event)
parameterChange in interface ParameterChangeListenerevent - The Event which triggered this function call
public double getSafeCondProb(double timeSinceLast,
double duration)
timeSinceLast - duration -
public double getSafeTimeSinceLastCutoff()
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||