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

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

public class WC1994_MagLengthRelationship
extends MagLengthRelationship

Title:WC1994_MagLengthRelationship
Description: This implements the Wells and Coppersmith (1994, Bull. Seism. Soc. Am., pages 974-2002) magnitude versus surface-rupture length relationships. The values are a function of rake. Setting the rake to Double.NaN causes their "All" rupture-types to be applied (and this is the default value for rake). Note that the standard deviation for length as a function of mag is given for log(area) (base-10) not length.

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

Field Summary
static java.lang.String NAME
           
 
Fields inherited from class org.opensha.commons.calc.magScalingRelations.MagScalingRelationship
lnToLog, rake
 
Constructor Summary
WC1994_MagLengthRelationship()
          no-argument constructor.
 
Method Summary
 double getLengthStdDev()
          Computes the standard deviation of log(length) (base-10) from magnitude (for the previously set or default rake)
 double getMagStdDev()
          Gives the standard deviation for the magnitude as a function of length (for the previously set or default rake).
 double getMedianLength(double mag)
          Computes the median rupture length from magnitude (for the previously set or default rake).
 double getMedianMag(double length)
          Computes the median magnitude from rupture length (for the previously set or default rake).
 java.lang.String getName()
          Returns the name of the object
 void setRake(double rake)
          This overides the parent method to allow a value of Double.NaN (which is used to designate the "All" rupture-types option here).
 
Methods inherited from class org.opensha.commons.calc.magScalingRelations.MagLengthRelationship
getLengthStdDev, getMagStdDev, getMedianLength, getMedianMag, getMedianScale, getScaleStdDev
 
Methods inherited from class org.opensha.commons.calc.magScalingRelations.MagScalingRelationship
getMedianScale, getScaleStdDev
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

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

WC1994_MagLengthRelationship

public WC1994_MagLengthRelationship()
no-argument constructor. All this does is set the rake to Double.NaN (as the default)

Method Detail

getName

public java.lang.String getName()
Returns the name of the object

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

getMedianMag

public double getMedianMag(double length)
Computes the median magnitude from rupture length (for the previously set or default rake). Note that thier "All" case is applied if rake=Double.NaN

Specified by:
getMedianMag in class MagLengthRelationship
Parameters:
length - in km
Returns:
median magnitude

getMagStdDev

public double getMagStdDev()
Gives the standard deviation for the magnitude as a function of length (for the previously set or default rake). Note that thier "All" case is applied if rake=Double.NaN

Specified by:
getMagStdDev in class MagLengthRelationship
Parameters:
length - in km
Returns:
standard deviation

getMedianLength

public double getMedianLength(double mag)
Computes the median rupture length from magnitude (for the previously set or default rake). Note that thier "All" case is applied if rake=Double.NaN

Specified by:
getMedianLength in class MagLengthRelationship
Parameters:
mag - - moment magnitude
Returns:
median length in km

getLengthStdDev

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

Specified by:
getLengthStdDev in class MagLengthRelationship
Parameters:
mag - - moment magnitude
rake - in degrees
Returns:
standard deviation

setRake

public void setRake(double rake)
This overides the parent method to allow a value of Double.NaN (which is used to designate the "All" rupture-types option here).

Overrides:
setRake in class MagScalingRelationship
Parameters:
rake -