org.opensha.commons.calc.magScalingRelations.magScalingRelImpl
Class HanksBakun2002_MagAreaRel

java.lang.Object
  extended by org.opensha.commons.calc.magScalingRelations.MagScalingRelationship
      extended by org.opensha.commons.calc.magScalingRelations.MagAreaRelationship
          extended by org.opensha.commons.calc.magScalingRelations.magScalingRelImpl.HanksBakun2002_MagAreaRel
All Implemented Interfaces:
Serializable, Named

public class HanksBakun2002_MagAreaRel
extends MagAreaRelationship

Title:HanksBakun2002_MagAreaRel
Description: This implements the "Hanks & Bakun (2002) Mag-Area Rel.", published in the Bulletin of the Seismological Society of America (Vol. 92, No. 5, pp. 1841-1846, June 2002). The equation is Mag=3.98+log10(Area) if Area less than or equal to 537, or Mag=3.07+(4/3)log10(Area) if Area greater than 537.

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

Field Summary
static String NAME
           
 
Fields inherited from class org.opensha.commons.calc.magScalingRelations.MagScalingRelationship
lnToLog, rake
 
Constructor Summary
HanksBakun2002_MagAreaRel()
           
 
Method Summary
 double getAreaStdDev()
          This returns NaN because the value is not available
 double getMagStdDev()
          Gives the standard deviation for magnitude
 double getMedianArea(double mag)
          Computes the median rupture area from magnitude
 double getMedianMag(double area)
          Computes the median magnitude from rupture area.
 String getName()
          Returns the name of the object
 
Methods inherited from class org.opensha.commons.calc.magScalingRelations.MagAreaRelationship
getAreaStdDev, getMagAreaFunction, getMagStdDev, getMedianArea, getMedianMag, getMedianScale, getScaleStdDev
 
Methods inherited from class org.opensha.commons.calc.magScalingRelations.MagScalingRelationship
getMedianScale, getScaleStdDev, setRake
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values
Constructor Detail

HanksBakun2002_MagAreaRel

public HanksBakun2002_MagAreaRel()
Method Detail

getMedianMag

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

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

getMagStdDev

public double getMagStdDev()
Gives the standard deviation for magnitude

Specified by:
getMagStdDev in class MagAreaRelationship
Returns:
standard deviation

getMedianArea

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

Specified by:
getMedianArea in class MagAreaRelationship
Parameters:
mag - - moment magnitude
Returns:
median area in km

getAreaStdDev

public double getAreaStdDev()
This returns NaN because the value is not available

Specified by:
getAreaStdDev in class MagAreaRelationship
Returns:
standard deviation

getName

public String getName()
Returns the name of the object

Specified by:
getName in interface Named
Specified by:
getName in class MagScalingRelationship