|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GcimCalculatorAPI
Title: GcimCalculatorAPI
Description: This class defines interface for Gcim calculator. Implementation of this interface computes GCIM distributions for various IMi's conditioned on a hazard curve for IMj based on the input parameters imr, site and eqkRupforecast. See Bradley (2010, Earthquake Engineering and Structural Dynamics, in press) for a complete discussion of GCIM.
| Method Summary | |
|---|---|
double[] |
getApproxCDFvalues()
This method gets the Approx CDFvalues |
boolean |
getMultipleGcims(int numIMi,
ArrayList<HashMap<TectonicRegionType,ScalarIMR>> imiAttenRels,
ArrayList<String> imiTypes,
ArrayList<HashMap<TectonicRegionType,ImCorrelationRelationship>> imijCorrRels,
double maxDist,
ArbitrarilyDiscretizedFunc magDistFilter)
this function obtains the GCIM distributions for multiple IMs by successively calling the getSingleGcim method Returns true if it was successfully else return false |
void |
getRuptureContributions(double iml,
Site site,
HashMap<TectonicRegionType,ScalarIMR> imrjMap,
AbstractERF eqkRupForecast,
double maxDist,
ArbitrarilyDiscretizedFunc magDistFilter)
This method gets the contribution of each rupture in the ERF toward the probability of IML=iml |
boolean |
getSingleGcim(int imiNumber,
HashMap<TectonicRegionType,ScalarIMR> imriMap,
HashMap<TectonicRegionType,ImCorrelationRelationship> imijCorrRelMap,
double maxDist,
ArbitrarilyDiscretizedFunc magDistFilter)
this function performs the GCIM computations to obtain the conditional distribution of a single input intensity measure. |
void |
setApproxCDFvalues()
This method sets the approximate CDF values for which the gcim distributions are calculated for using defaults zmin=-3, zmax=3, and dz=0.2 which gives 51 points |
void |
setApproxCDFvalues(double zmin,
double zmax,
double dz)
This method sets the approximate CDF values for which the gcim distributions are calculated for |
void |
setGcimOutputDimensions()
This method sets the dimensions of the imiArray and cdfIMi_IMjArrays |
| Method Detail |
|---|
void getRuptureContributions(double iml,
Site site,
HashMap<TectonicRegionType,ScalarIMR> imrjMap,
AbstractERF eqkRupForecast,
double maxDist,
ArbitrarilyDiscretizedFunc magDistFilter)
throws RemoteException
RemoteException
IOException
boolean getMultipleGcims(int numIMi,
ArrayList<HashMap<TectonicRegionType,ScalarIMR>> imiAttenRels,
ArrayList<String> imiTypes,
ArrayList<HashMap<TectonicRegionType,ImCorrelationRelationship>> imijCorrRels,
double maxDist,
ArbitrarilyDiscretizedFunc magDistFilter)
imri: - selected IMRi object (that for which the distribution is desired i.e. IMi)imCorrelationRelationship: - selected correlation object for IMi and IMjmaxDist: - maxDist of sources to considermagDistFilter: - Magnitude-Distance filter for sources
boolean getSingleGcim(int imiNumber,
HashMap<TectonicRegionType,ScalarIMR> imriMap,
HashMap<TectonicRegionType,ImCorrelationRelationship> imijCorrRelMap,
double maxDist,
ArbitrarilyDiscretizedFunc magDistFilter)
imiNumber - - the imi counter used for storing results in arrayimri: - selected IMRi object (that for which the distribution is desired i.e. IMi)imCorrelationRelationship: - selected correlation object for IMi and IMjmaxDist: - maxDist of sources to considermagDistFilter: - Magnitude-Distance filter for sources
void setApproxCDFvalues(double zmin,
double zmax,
double dz)
zmin - - the minimum z (normalised CDF value) to compute gcim forzmax - - the maximum z (normalised CDF value) to compute gcim fordz - - the increment of z (normalised CDF value) which determines the number of pointsvoid setApproxCDFvalues()
double[] getApproxCDFvalues()
void setGcimOutputDimensions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||