org.opensha.commons.calc.magScalingRelations
Class MagAreaRelationship

java.lang.Object
  extended by org.opensha.commons.calc.magScalingRelations.MagScalingRelationship
      extended by org.opensha.commons.calc.magScalingRelations.MagAreaRelationship
All Implemented Interfaces:
Serializable, Named
Direct Known Subclasses:
Ellsworth_A_WG02_MagAreaRel, Ellsworth_B_WG02_MagAreaRel, HanksBakun2002_MagAreaRel, PEER_testsMagAreaRelationship, Shaw_2007_MagAreaRel, Shaw_2009_MagAreaRel, Shaw_2009_ModifiedMagAreaRel, Somerville_2006_MagAreaRel, WC1994_MagAreaRelationship, WGCEP_2007_PowLaw_MagAreaRel

public abstract class MagAreaRelationship
extends MagScalingRelationship

Title:MagAreaRelationship
Description: This is an abstract class that gives the median and standard deviation of magnitude as a function of area (km-squared) or visa versa. The values can also be a function of rake. Note that the standard deviation for area as a function of mag is given for natural-log(area) not area.

Version:
1.0
Author:
Edward H. Field
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.opensha.commons.calc.magScalingRelations.MagScalingRelationship
lnToLog, rake
 
Constructor Summary
MagAreaRelationship()
           
 
Method Summary
abstract  double getAreaStdDev()
          Computes the standard deviation of log(area) (base-10) from magnitude (for the previously set or default rake)
 double getAreaStdDev(double rake)
          Computes the standard deviation of log(area) (base-10) from magnitude & rake
 ArbitrarilyDiscretizedFunc getMagAreaFunction(double areaMin, double areaMax, int numArea)
          This returns an ArbitrarilyDiscretizedFunc with Mag on the y-axis and Area on the x-axis (sampled at the given mag increments)
abstract  double getMagStdDev()
          Gives the standard deviation for the magnitude as a function of area (for the previously set or default rake)
 double getMagStdDev(double rake)
          Gives the standard deviation for the magnitude as a function of area & rake
abstract  double getMedianArea(double mag)
          Computes the median rupture area from magnitude (for the previously set or default rake)
 double getMedianArea(double mag, double rake)
          Computes the median rupture area from magnitude & rake
abstract  double getMedianMag(double area)
          Computes the median magnitude from rupture area
 double getMedianMag(double area, double rake)
          Computes the median magnitude from rupture area & rake
 double getMedianScale(double mag)
          over-ride parent method to call getMedainArea(mag) here
 double getScaleStdDev()
          over-ride parent method to call getAreaStdDev() here
 
Methods inherited from class org.opensha.commons.calc.magScalingRelations.MagScalingRelationship
getMedianScale, getName, getScaleStdDev, setRake
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MagAreaRelationship

public MagAreaRelationship()
Method Detail

getMagAreaFunction

public ArbitrarilyDiscretizedFunc getMagAreaFunction(double areaMin,
                                                     double areaMax,
                                                     int numArea)
This returns an ArbitrarilyDiscretizedFunc with Mag on the y-axis and Area on the x-axis (sampled at the given mag increments)

Parameters:
minMag -
deltaMag -
numMag -
Returns:

getMedianMag

public abstract double getMedianMag(double area)
Computes the median magnitude from rupture area

Specified by:
getMedianMag in class MagScalingRelationship
Parameters:
area - in km-squared
Returns:
median magnitude

getMedianMag

public double getMedianMag(double area,
                           double rake)
Computes the median magnitude from rupture area & rake

Overrides:
getMedianMag in class MagScalingRelationship
Parameters:
area - in km-squared
rake - in degrees
Returns:
median magnitude

getMagStdDev

public abstract double getMagStdDev()
Gives the standard deviation for the magnitude as a function of area (for the previously set or default rake)

Specified by:
getMagStdDev in class MagScalingRelationship
Parameters:
area - in km-squared
Returns:
standard deviation

getMagStdDev

public double getMagStdDev(double rake)
Gives the standard deviation for the magnitude as a function of area & rake

Overrides:
getMagStdDev in class MagScalingRelationship
Parameters:
area - in km-squared
rake - in degrees
Returns:
standard deviation

getMedianArea

public abstract double getMedianArea(double mag)
Computes the median rupture area from magnitude (for the previously set or default rake)

Parameters:
mag - - moment magnitude
Returns:
median area in km-squared

getMedianArea

public double getMedianArea(double mag,
                            double rake)
Computes the median rupture area from magnitude & rake

Parameters:
mag - - moment magnitude
rake - in degrees
Returns:
median area in km-squared

getAreaStdDev

public abstract double getAreaStdDev()
Computes the standard deviation of log(area) (base-10) from magnitude (for the previously set or default rake)

Parameters:
mag - - moment magnitude
rake - in degrees
Returns:
standard deviation

getAreaStdDev

public double getAreaStdDev(double rake)
Computes the standard deviation of log(area) (base-10) from magnitude & rake

Parameters:
mag - - moment magnitude
rake - in degrees
Returns:
standard deviation

getMedianScale

public double getMedianScale(double mag)
over-ride parent method to call getMedainArea(mag) here

Specified by:
getMedianScale in class MagScalingRelationship

getScaleStdDev

public double getScaleStdDev()
over-ride parent method to call getAreaStdDev() here

Specified by:
getScaleStdDev in class MagScalingRelationship