org.opensha.commons.calc.magScalingRelations
Class MagLengthRelationship

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

public abstract class MagLengthRelationship
extends MagScalingRelationship

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

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
MagLengthRelationship()
           
 
Method Summary
abstract  double getLengthStdDev()
          Computes the standard deviation of log(length) (base-10) from magnitude (for the previously set or default rake)
 double getLengthStdDev(double rake)
          Computes the standard deviation of log(length) (base-10) from magnitude & rake
abstract  double getMagStdDev()
          Gives the standard deviation for the magnitude as a function of length (for the previously set or default rake)
 double getMagStdDev(double rake)
          Gives the standard deviation for the magnitude as a function of length & rake
abstract  double getMedianLength(double mag)
          Computes the median rupture length from magnitude (for the previously set or default rake)
 double getMedianLength(double mag, double rake)
          Computes the median rupture length from magnitude & rake
abstract  double getMedianMag(double length)
          Computes the median magnitude from rupture length (for the previously set or default rake)
 double getMedianMag(double length, double rake)
          Computes the median magnitude from rupture length & rake
 double getMedianScale(double mag)
          over-ride parent method to call getMedainLength(mag) here
 double getScaleStdDev()
          over-ride parent method to call getLengthStdDev(mag) 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

MagLengthRelationship

public MagLengthRelationship()
Method Detail

getMedianMag

public abstract double getMedianMag(double length)
Computes the median magnitude from rupture length (for the previously set or default rake)

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

getMedianMag

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

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

getMagStdDev

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

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

getMagStdDev

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

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

getMedianLength

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

Parameters:
mag - - moment magnitude
Returns:
median length in km

getMedianLength

public double getMedianLength(double mag,
                              double rake)
Computes the median rupture length from magnitude & rake

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

getLengthStdDev

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

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

getLengthStdDev

public double getLengthStdDev(double rake)
Computes the standard deviation of log(length) (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 getMedainLength(mag) here

Specified by:
getMedianScale in class MagScalingRelationship

getScaleStdDev

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

Specified by:
getScaleStdDev in class MagScalingRelationship