org.opensha.sha.cybershake.db
Class HazardCurveComputation

java.lang.Object
  extended by org.opensha.sha.cybershake.db.HazardCurveComputation

public class HazardCurveComputation
extends Object


Field Summary
static double CONVERSION_TO_G
           
 
Constructor Summary
HazardCurveComputation(DBAccess db)
           
 
Method Summary
 DiscretizedFunc computeDeterministicCurve(ArrayList<Double> imlVals, CybershakeRun run, int srcId, int rupId, CybershakeIM imType)
          Computes the Hazard Curve at the given run
 DiscretizedFunc computeDeterministicCurve(ArrayList<Double> imlVals, int runID, int srcId, int rupId, CybershakeIM imType)
          Computes the Hazard Curve at the given runID
 DiscretizedFunc computeDeterministicCurve(ArrayList<Double> imlVals, String site, int erfId, int sgtVariation, int rvid, int velModelID, int srcId, int rupId, CybershakeIM imType)
          Computes the Hazard Curve at the given site
 DiscretizedFunc computeHazardCurve(ArrayList<Double> imlVals, CybershakeRun run, CybershakeIM imType)
          Computes the Hazard Curve at the given site
 DiscretizedFunc computeHazardCurve(ArrayList<Double> imlVals, int runID, CybershakeIM imType)
          Computes the Hazard Curve at the given site
 DiscretizedFunc computeHazardCurve(ArrayList<Double> imlVals, String site, int erfId, int sgtVariation, int rvid, int velModelID, CybershakeIM imType)
          Computes the Hazard Curve at the given site
 DiscretizedFunc computeHazardCurve(ArrayList<Double> imlVals, String site, String erfName, int sgtVariation, int rvid, int velModelID, CybershakeIM imType)
          Computes the Hazard Curve at the given site
 PeakAmplitudesFromDBAPI getPeakAmpsAccessor()
           
 ArrayList<CybershakeIM> getSupportedSA_PeriodStrings()
           
 ArrayList<CybershakeIM> getSupportedSA_PeriodStrings(int runID)
           
static DiscretizedFunc setIMLProbs(ArrayList<Double> imlVals, DiscretizedFunc hazFunc, ArbitrarilyDiscretizedFunc normalizedFunc, double rupProb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONVERSION_TO_G

public static final double CONVERSION_TO_G
See Also:
Constant Field Values
Constructor Detail

HazardCurveComputation

public HazardCurveComputation(DBAccess db)
Method Detail

getSupportedSA_PeriodStrings

public ArrayList<CybershakeIM> getSupportedSA_PeriodStrings()
Returns:
the List of supported Peak amplitudes

getSupportedSA_PeriodStrings

public ArrayList<CybershakeIM> getSupportedSA_PeriodStrings(int runID)
Returns:
the List of supported Peak amplitudes for a given site, ERF ID, SGT Var ID, and Rup Var ID

computeDeterministicCurve

public DiscretizedFunc computeDeterministicCurve(ArrayList<Double> imlVals,
                                                 String site,
                                                 int erfId,
                                                 int sgtVariation,
                                                 int rvid,
                                                 int velModelID,
                                                 int srcId,
                                                 int rupId,
                                                 CybershakeIM imType)
Computes the Hazard Curve at the given site

Parameters:
imlVals -
site -
erfName -
srcId -
rupId -
imType -

computeDeterministicCurve

public DiscretizedFunc computeDeterministicCurve(ArrayList<Double> imlVals,
                                                 int runID,
                                                 int srcId,
                                                 int rupId,
                                                 CybershakeIM imType)
Computes the Hazard Curve at the given runID

Parameters:
imlVals -
runID -
srcId -
rupId -
imType -

computeDeterministicCurve

public DiscretizedFunc computeDeterministicCurve(ArrayList<Double> imlVals,
                                                 CybershakeRun run,
                                                 int srcId,
                                                 int rupId,
                                                 CybershakeIM imType)
Computes the Hazard Curve at the given run

Parameters:
imlVals -
run -
srcId -
rupId -
imType -

computeHazardCurve

public DiscretizedFunc computeHazardCurve(ArrayList<Double> imlVals,
                                          String site,
                                          String erfName,
                                          int sgtVariation,
                                          int rvid,
                                          int velModelID,
                                          CybershakeIM imType)
Computes the Hazard Curve at the given site

Parameters:
imlVals -
site -
erfName -
imType -

computeHazardCurve

public DiscretizedFunc computeHazardCurve(ArrayList<Double> imlVals,
                                          String site,
                                          int erfId,
                                          int sgtVariation,
                                          int rvid,
                                          int velModelID,
                                          CybershakeIM imType)
Computes the Hazard Curve at the given site

Parameters:
imlVals -
site -
erfName -
imType -

computeHazardCurve

public DiscretizedFunc computeHazardCurve(ArrayList<Double> imlVals,
                                          int runID,
                                          CybershakeIM imType)
Computes the Hazard Curve at the given site

Parameters:
imlVals -
site -
erfName -
imType -

computeHazardCurve

public DiscretizedFunc computeHazardCurve(ArrayList<Double> imlVals,
                                          CybershakeRun run,
                                          CybershakeIM imType)
Computes the Hazard Curve at the given site

Parameters:
imlVals -
site -
erfName -
imType -

setIMLProbs

public static DiscretizedFunc setIMLProbs(ArrayList<Double> imlVals,
                                          DiscretizedFunc hazFunc,
                                          ArbitrarilyDiscretizedFunc normalizedFunc,
                                          double rupProb)

getPeakAmpsAccessor

public PeakAmplitudesFromDBAPI getPeakAmpsAccessor()