org.opensha.commons.calc.magScalingRelations.magScalingRelImpl
Class WGCEP_2007_PowLaw_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.WGCEP_2007_PowLaw_MagAreaRel
All Implemented Interfaces:
Serializable, Named

public class WGCEP_2007_PowLaw_MagAreaRel
extends MagAreaRelationship

Title:Ellsworth_A_WG02_MagAreaRel
Description: This implements Ross Stein's powerlaw fit that he made for WGCEP 2007.(Appendix D). The equation is Mag=4.2775*A^0.0726.

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
WGCEP_2007_PowLaw_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

WGCEP_2007_PowLaw_MagAreaRel

public WGCEP_2007_PowLaw_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