|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.sha.imr.AbstractIMR
org.opensha.sha.imr.AttenuationRelationship
org.opensha.sha.imr.attenRelImpl.MultiIMR_Averaged_AttenRel
public class MultiIMR_Averaged_AttenRel
| Field Summary | |
|---|---|
static String |
IMR_WEIGHTS_PARAM_NAME
|
static String |
NAME
|
static String |
SHORT_NAME
|
| Fields inherited from class org.opensha.sha.imr.AbstractIMR |
|---|
eqkRupture, eqkRuptureParams, EXCEED_PROB_DEFAULT, EXCEED_PROB_INFO, EXCEED_PROB_MAX, EXCEED_PROB_MIN, EXCEED_PROB_NAME, exceedProbParam, im, intensityMeasureChanged, listener, otherParams, propagationEffectParams, site, siteParams, supportedIMParams, url_info_string, XML_METADATA_IMT_NAME, XML_METADATA_NAME, XML_METADATA_SITE_PARAMETERS_NAME |
| Fields inherited from interface org.opensha.commons.metadata.XMLSaveable |
|---|
XML_METADATA_NAME |
| Constructor Summary | |
|---|---|
MultiIMR_Averaged_AttenRel(ArrayList<ScalarIMR> imrs)
|
|
MultiIMR_Averaged_AttenRel(ArrayList<ScalarIMR> imrs,
ArrayList<Double> weights)
|
|
| Method Summary | |
|---|---|
double |
getEpsilon()
This returns (iml-mean)/stdDev, ignoring any truncation. |
double |
getEpsilon(double iml)
This returns (iml-mean)/stdDev, ignoring any truncation. |
DiscretizedFunc |
getExceedProbabilities(DiscretizedFunc intensityMeasureLevels)
This fills in the exceedance probability for multiple intensityMeasure levels (often called a "hazard curve"); the levels are obtained from the X values of the input function, and Y values are filled in with the asociated exceedance probabilities. |
double |
getExceedProbability()
This calculates the probability that the intensity-measure level (the value in the Intensity-Measure Parameter) will be exceeded given the mean and stdDev computed from current independent parameter values. |
double |
getExceedProbability(double iml)
This calculates the probability that the supplied intensity-measure level will be exceeded given the mean and stdDev computed from current independent parameter values. |
protected double |
getExceedProbability(double mean,
double stdDev,
double iml)
This method computed the probability of exceeding the IM-level given the mean and stdDev, and considering the sigma truncation type and level. |
double |
getIML_AtExceedProb()
This calculates the intensity-measure level associated with probability held by the exceedProbParam given the mean and standard deviation (according to the chosen truncation type and level). |
double |
getIML_AtExceedProb(double exceedProb)
This calculates the intensity-measure level associated with given probability and the calculated mean and standard deviation (and according to the chosen truncation type and level). |
double |
getMean()
This returns the mean intensity-measure level for the current set of parameters. |
String |
getName()
Returns name of the IntensityMeasureRelationship. |
DiscretizedFunc |
getSA_ExceedProbSpectrum(double iml)
This calculates the exceed-probability at each SA Period for the supplied intensity-measure level (a hazard spectrum). |
DiscretizedFunc |
getSA_IML_AtExceedProbSpectrum(double exceedProb)
This calculates the intensity-measure level for each SA Period associated with the given probability. |
String |
getShortName()
Returns a Short Name for the IMR |
double |
getStdDev()
This returns the standard deviation (stdDev) of the intensity-measure level for the current set of parameters. |
double |
getTotExceedProbability(PointEqkSource ptSrc,
double iml)
This method will compute the total probability of exceedance for a PointEqkSource (including the probability of each rupture). |
protected void |
initEqkRuptureParams()
Creates the EqkRupture-related parameters, which are all associated parameters that the exceedance probability depends upon. |
protected void |
initIndependentParamLists()
This creates the lists of independent parameters that the various dependent parameters (mean, standard deviation, exceedance probability, and IML at exceedance probability) depend upon. |
protected void |
initOtherParams()
This creates the otherParams list. |
protected void |
initPropagationEffectParams()
Creates Propagation-Effect related parameters, which are all associated parameters that the exceedance probability depends upon. |
protected void |
initSiteParams()
This creates Site-related parameters, which are all associated parameters that the exceedance probability depends upon. |
protected void |
initSupportedIntensityMeasureParams()
This creates the supported intensity-measure parameters. |
void |
setEqkRupture(EqkRupture eqkRupture)
Sets the EqkRupture object in the IMR as a reference to the one passed in. |
void |
setIntensityMeasure(Parameter intensityMeasure)
Sets the intensityMeasure parameter, not as a pointer to that passed in, but by finding and setting the internally held one with the same name, and also setting the values of any of its independent parameters to be equal to the associated values of those passed in. |
void |
setIntensityMeasure(String intensityMeasureName)
This sets the intensityMeasure parameter as that which has the name passed in; no value (level) is set, nor are any of the IM's independent parameters set (since it's only given the name). |
void |
setIntensityMeasureLevel(Double iml)
Sets the value of the selected intensityMeasure; |
void |
setIntensityMeasureLevel(Object iml)
Sets the value of the currently selected intensityMeasure (if the value is allowed); this will reject anything that is not a Double. |
void |
setParamDefaults()
This sets the defaults for all the parameters. |
protected void |
setPropagationEffectParams()
Calculates the value of each propagation effect parameter from the current Site and ProbEqkRupture objects. |
void |
setSite(Site site)
Sets the Site object as a reference to that passed in. |
void |
setSiteLocation(Location loc)
This method sets the location in the site. |
void |
setUserMaxDistance(double maxDist)
This method sets the user-defined distance beyond which ground motion is set to effectively zero (the mean is a large negative value). |
void |
setWeights(ArrayList<Double> newWeights)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
public static final String NAME
public static final String SHORT_NAME
public static final String IMR_WEIGHTS_PARAM_NAME
| Constructor Detail |
|---|
public MultiIMR_Averaged_AttenRel(ArrayList<ScalarIMR> imrs)
public MultiIMR_Averaged_AttenRel(ArrayList<ScalarIMR> imrs,
ArrayList<Double> weights)
| Method Detail |
|---|
public void setWeights(ArrayList<Double> newWeights)
protected void initEqkRuptureParams()
AttenuationRelationship
initEqkRuptureParams in class AttenuationRelationshipprotected void initPropagationEffectParams()
AttenuationRelationship
initPropagationEffectParams in class AttenuationRelationshipprotected void initSiteParams()
AttenuationRelationship
initSiteParams in class AttenuationRelationshipprotected void initSupportedIntensityMeasureParams()
AttenuationRelationship
initSupportedIntensityMeasureParams in class AttenuationRelationshipprotected void initIndependentParamLists()
protected void initOtherParams()
AttenuationRelationship
initOtherParams in class AttenuationRelationshippublic void setEqkRupture(EqkRupture eqkRupture)
AbstractIMR
setEqkRupture in interface IntensityMeasureRelationshipsetEqkRupture in class AbstractIMReqkRupture - The new EqkRupture objectpublic void setSite(Site site)
AbstractIMR
setSite in interface IntensityMeasureRelationshipsetSite in class AbstractIMRsite - The new site objectprotected void setPropagationEffectParams()
AttenuationRelationship
setPropagationEffectParams in class AttenuationRelationship
public void setIntensityMeasure(Parameter intensityMeasure)
throws ParameterException,
ConstraintException
AbstractIMR
setIntensityMeasure in interface IntensityMeasureRelationshipsetIntensityMeasure in class AbstractIMRintensityMeasure - The new intensityMeasure Parameter
ParameterException
ConstraintException
public void setIntensityMeasure(String intensityMeasureName)
throws ParameterException
AbstractIMR
setIntensityMeasure in interface IntensityMeasureRelationshipsetIntensityMeasure in class AbstractIMRParameterExceptionpublic double getMean()
ScalarIMR
public double getStdDev()
ScalarIMR
public double getEpsilon()
AttenuationRelationship
getEpsilon in interface ScalarIMRgetEpsilon in class AttenuationRelationshippublic double getEpsilon(double iml)
AttenuationRelationship
getEpsilon in interface ScalarIMRgetEpsilon in class AttenuationRelationshipiml - double
public DiscretizedFunc getExceedProbabilities(DiscretizedFunc intensityMeasureLevels)
throws ParameterException
AttenuationRelationship
getExceedProbabilities in interface ScalarIMRgetExceedProbabilities in class AttenuationRelationshipintensityMeasureLevels - The function to be filled in
ParameterException - Description of the Exception
public double getExceedProbability()
throws ParameterException,
IMRException
AttenuationRelationship
getExceedProbability in interface IntensityMeasureRelationshipgetExceedProbability in class AttenuationRelationshipParameterException - Description of the Exception
IMRException - Description of the Exception
protected double getExceedProbability(double mean,
double stdDev,
double iml)
throws ParameterException,
IMRException
AttenuationRelationship
getExceedProbability in class AttenuationRelationshipParameterException
IMRException
public double getExceedProbability(double iml)
throws ParameterException,
IMRException
AttenuationRelationship
getExceedProbability in interface ScalarIMRgetExceedProbability in class AttenuationRelationshipParameterException - Description of the Exception
IMRException - Description of the Exception
public double getIML_AtExceedProb()
throws ParameterException
AttenuationRelationship
getIML_AtExceedProb in interface ScalarIMRgetIML_AtExceedProb in class AttenuationRelationshipParameterException - Description of the Exception
public double getIML_AtExceedProb(double exceedProb)
throws ParameterException
AttenuationRelationship
getIML_AtExceedProb in interface ScalarIMRgetIML_AtExceedProb in class AttenuationRelationshipexceedProb - : Sets the Value of the exceed Prob param with this value.
ParameterException - Description of the Exception
public DiscretizedFunc getSA_ExceedProbSpectrum(double iml)
throws ParameterException,
IMRException
AttenuationRelationship
getSA_ExceedProbSpectrum in interface ScalarIMRgetSA_ExceedProbSpectrum in class AttenuationRelationshipParameterException
IMRException
public DiscretizedFunc getSA_IML_AtExceedProbSpectrum(double exceedProb)
throws ParameterException,
IMRException
AttenuationRelationship
getSA_IML_AtExceedProbSpectrum in interface ScalarIMRgetSA_IML_AtExceedProbSpectrum in class AttenuationRelationshipParameterException
IMRException
public double getTotExceedProbability(PointEqkSource ptSrc,
double iml)
AttenuationRelationship
getTotExceedProbability in class AttenuationRelationship
public void setIntensityMeasureLevel(Double iml)
throws ParameterException
AttenuationRelationship
setIntensityMeasureLevel in interface ScalarIMRsetIntensityMeasureLevel in class AttenuationRelationshipiml - The new intensityMeasureLevel value
ParameterException - Description of the Exception
public void setIntensityMeasureLevel(Object iml)
throws ParameterException
AttenuationRelationship
setIntensityMeasureLevel in interface IntensityMeasureRelationshipsetIntensityMeasureLevel in class AttenuationRelationshipiml - The new intensityMeasureLevel value
ParameterException - Description of the Exceptionpublic void setSiteLocation(Location loc)
AttenuationRelationship
setSiteLocation in interface ScalarIMRsetSiteLocation in class AttenuationRelationshippublic void setUserMaxDistance(double maxDist)
AttenuationRelationship
setUserMaxDistance in interface ScalarIMRsetUserMaxDistance in class AttenuationRelationshippublic String getShortName()
IntensityMeasureRelationship
public String getName()
AbstractIMR
getName in interface NamedgetName in interface IntensityMeasureRelationshipgetName in class AbstractIMRpublic void setParamDefaults()
IntensityMeasureRelationship
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||