|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.sha.calc.SpectrumCalculator
public class SpectrumCalculator
Title: SpectrumCalculator
Description: This class computes the Spectral Values for given IML or Prob. Value
| Field Summary | |
|---|---|
protected static String |
C
|
protected int |
currRuptures
|
protected static boolean |
D
|
protected int |
numSources
|
protected int |
sourceIndex
|
protected int |
totRuptures
|
| Constructor Summary | |
|---|---|
SpectrumCalculator()
SpectrumCalculator |
|
| Method Summary | |
|---|---|
ParameterList |
getAdjustableParams()
|
ListIterator |
getAdjustableParamsIterator()
get the adjustable parameters |
int |
getCurrRuptures()
|
DiscretizedFunc |
getDeterministicSpectrumCurve(Site site,
ScalarIMR imr,
EqkRupture rupture,
boolean probAtIML,
double imlProbVal)
This function computes a deterministic exceedance curve for the given Site, IMR, and ProbEqkrupture. |
DiscretizedFunc |
getIML_SpectrumCurve(DiscretizedFunc spectrumFunction,
Site site,
ScalarIMR imr,
ERF eqkRupForecast,
double probVal,
List supportedSA_Periods)
This function computes a spectrum curve for all SA Period supported by the IMR and then interpolates the IML value from all the computed curves. |
double |
getMaxSourceDistance()
This is a direct way of getting the distance cutoff from that parameter |
PtSrcDistCorr.Type |
getPtSrcDistCorrType()
This gets the type of point-source distance correction that is desired (see the class PtSrcDistCorr for options) |
DiscretizedFunc |
getSpectrumCurve(Site site,
ScalarIMR imr,
ERF eqkRupForecast,
double imlVal,
List supportedSA_Periods)
This function computes a spectrum curve for the given Site, IMR, and ERF. |
int |
getTotRuptures()
|
void |
setAdjustableParams(ParameterList paramList)
|
void |
setMaxSourceDistance(double distance)
This sets the maximum distance of sources to be considered in the calculation. |
void |
setPtSrcDistCorrType(PtSrcDistCorr.Type type)
This sets the type of point-source distance correction that is desired (see the class PtSrcDistCorr for options) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String C
protected static final boolean D
protected int currRuptures
protected int totRuptures
protected int sourceIndex
protected int numSources
| Constructor Detail |
|---|
public SpectrumCalculator()
| Method Detail |
|---|
public ParameterList getAdjustableParams()
getAdjustableParams in interface SpectrumCalculatorAPIpublic void setAdjustableParams(ParameterList paramList)
setAdjustableParams in interface SpectrumCalculatorAPIpublic double getMaxSourceDistance()
getMaxSourceDistance in interface SpectrumCalculatorAPIpublic ListIterator getAdjustableParamsIterator()
getAdjustableParamsIterator in interface SpectrumCalculatorAPIpublic void setMaxSourceDistance(double distance)
setMaxSourceDistance in interface SpectrumCalculatorAPIdistance: - the maximum distance in km
public DiscretizedFunc getIML_SpectrumCurve(DiscretizedFunc spectrumFunction,
Site site,
ScalarIMR imr,
ERF eqkRupForecast,
double probVal,
List supportedSA_Periods)
getIML_SpectrumCurve in interface SpectrumCalculatorAPIspecFunction: - This function is where the final interplotaed spectrum
for the IML@prob curve is placed.site: - site objectimr: - selected IMR objecteqkRupForecast: - selected Earthquake rup forecast
public DiscretizedFunc getSpectrumCurve(Site site,
ScalarIMR imr,
ERF eqkRupForecast,
double imlVal,
List supportedSA_Periods)
getSpectrumCurve in interface SpectrumCalculatorAPIhazFunction: - This function is where the hazard curve is placedsite: - site objectimr: - selected IMR objecteqkRupForecast: - selected Earthquake rup forecast
public int getCurrRuptures()
getCurrRuptures in interface SpectrumCalculatorAPIpublic int getTotRuptures()
getTotRuptures in interface SpectrumCalculatorAPI
public DiscretizedFunc getDeterministicSpectrumCurve(Site site,
ScalarIMR imr,
EqkRupture rupture,
boolean probAtIML,
double imlProbVal)
getDeterministicSpectrumCurve in interface SpectrumCalculatorAPIhazFunction: - This function is where the hazard curve is placedsite: - site objectimr: - selected IMR objectrupture: - Single Earthquake Rupture
public void setPtSrcDistCorrType(PtSrcDistCorr.Type type)
SpectrumCalculatorAPI
setPtSrcDistCorrType in interface SpectrumCalculatorAPIpublic PtSrcDistCorr.Type getPtSrcDistCorrType()
SpectrumCalculatorAPI
getPtSrcDistCorrType in interface SpectrumCalculatorAPI
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||