org.opensha.sha.cybershake.bombay
Class BombayBeachHazardCurveCalc

java.lang.Object
  extended by org.opensha.sha.cybershake.bombay.BombayBeachHazardCurveCalc
All Implemented Interfaces:
RuptureVariationProbabilityModifier

public class BombayBeachHazardCurveCalc
extends Object
implements RuptureVariationProbabilityModifier


Field Summary
static Location BOMBAY_LOC
          The location of the M4.8 event
static Location COYOTE_CREEK
           
static Location PARKFIELD_LOC
           
static Location PICO_RIVERA_LOC
           
static Location YUCAIPA_LOC
           
 
Constructor Summary
BombayBeachHazardCurveCalc(DBAccess db, double increaseMultFactor, Location hypoLocation, double maxDistance, String sourceNameConstr, boolean useDepth)
           
 
Method Summary
 List<Double> getVariationProbs(int sourceID, int rupID, double originalProb, CybershakeRun run, CybershakeIM im)
          This method is used to weight individual rupture variations non-uniformly.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOMBAY_LOC

public static final Location BOMBAY_LOC
The location of the M4.8 event


PARKFIELD_LOC

public static final Location PARKFIELD_LOC

PICO_RIVERA_LOC

public static final Location PICO_RIVERA_LOC

YUCAIPA_LOC

public static final Location YUCAIPA_LOC

COYOTE_CREEK

public static final Location COYOTE_CREEK
Constructor Detail

BombayBeachHazardCurveCalc

public BombayBeachHazardCurveCalc(DBAccess db,
                                  double increaseMultFactor,
                                  Location hypoLocation,
                                  double maxDistance,
                                  String sourceNameConstr,
                                  boolean useDepth)
Method Detail

main

public static void main(String[] args)

getVariationProbs

public List<Double> getVariationProbs(int sourceID,
                                      int rupID,
                                      double originalProb,
                                      CybershakeRun run,
                                      CybershakeIM im)
Description copied from interface: RuptureVariationProbabilityModifier
This method is used to weight individual rupture variations non-uniformly. It should return null if the probabilities are not to be modified, otherwise a list of probabilities for each rupture variation. The sum of these rupture variation probabilities will often be equal to originalProb, but doesn't have to. You can also modify the total rupture probability.

Individual probabilities can be set to zero, and returning a list where each value is originalProb/numRVs is equivelant to returning null.

Specified by:
getVariationProbs in interface RuptureVariationProbabilityModifier
originalProb - original total rupture probability
Returns: