|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.sha.cybershake.MedianCalc_Cybershake
public class MedianCalc_Cybershake
Title: MeanSigmaCalc
Description: This class computes the Mean and Sigma for any Attenuation supported and any IMT supported by these AttenuationRelationships. Sites information is read from a input file.
| Field Summary | |
|---|---|
protected ArrayList |
basinDepthVals
|
protected String |
dirName
|
protected ERF |
forecast
|
protected DecimalFormat |
format
|
protected String |
inputFileName
|
protected LocationList |
locList
|
protected static String |
MEAN
|
protected static double |
MIN_DIST
|
protected static String |
SIGMA
|
protected Site |
siteForSourceCutOff
|
protected double |
sourceCutOffDistance
|
protected ArrayList |
supportedAttenuationsList
|
protected ArrayList |
supportedIMTs
|
protected ArrayList |
willsSiteClassVals
|
| Constructor Summary | |
|---|---|
MedianCalc_Cybershake(String inpFile,
String outDir)
|
|
| Method Summary | |
|---|---|
protected void |
createSiteList()
Creates a location using the given locations to find source cut-off disance. |
protected void |
generateMedian(ScalarIMR imr,
String imtLine,
String dirName)
Generates the Mean and Sigma files for selected Attenuation Relationship application |
protected void |
getERF(String line)
|
protected void |
getMedian()
Starting with the Mean and Sigma calculation. |
static void |
main(String[] args)
|
void |
parameterChangeWarning(ParameterChangeWarningEvent e)
Function that must be implemented by all Listeners for ParameterChangeWarnEvents. |
protected void |
parseFile()
|
protected void |
setIMR(String str)
Creates the IMR instances and adds to the list of supported IMRs |
protected void |
setIMT(String line)
Gets the suported IMTs as String |
protected void |
setRupOffset(double rupOffset)
|
protected void |
setSite(String line)
Gets the list of locations with their Wills Site Class values |
protected void |
setSiteParamsInIMR(ScalarIMR imr,
String willsClass,
Double basinDepth)
set the site params in IMR according to basin Depth and vs 30 |
protected void |
toApplyBackGroud(boolean toApply)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ArrayList willsSiteClassVals
protected ArrayList basinDepthVals
protected LocationList locList
protected ERF forecast
protected ArrayList supportedAttenuationsList
protected static final String MEAN
protected static final String SIGMA
protected ArrayList supportedIMTs
protected double sourceCutOffDistance
protected static final double MIN_DIST
protected Site siteForSourceCutOff
protected DecimalFormat format
protected String inputFileName
protected String dirName
| Constructor Detail |
|---|
public MedianCalc_Cybershake(String inpFile,
String outDir)
| Method Detail |
|---|
protected void parseFile()
throws FileNotFoundException,
IOException
FileNotFoundException
IOExceptionprotected void setSite(String line)
line - Stringprotected void setIMT(String line)
line - Stringprotected void setIMR(String str)
str - Stringprotected void getERF(String line)
protected void toApplyBackGroud(boolean toApply)
protected void setRupOffset(double rupOffset)
protected void getMedian()
protected void setSiteParamsInIMR(ScalarIMR imr,
String willsClass,
Double basinDepth)
imr - lon - lat - willsClass - basinDepth - protected void createSiteList()
protected void generateMedian(ScalarIMR imr,
String imtLine,
String dirName)
imr - AttenuationRelationshipAPIdirName - Stringpublic void parameterChangeWarning(ParameterChangeWarningEvent e)
parameterChangeWarning in interface ParameterChangeWarningListenerevent - The Event which triggered this function callpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||