public enum MagConverter extends Enum<MagConverter>
ConvertsMag| Enum Constant and Description |
|---|
MB_TO_MW_ATKIN_BOORE
mb to Mw conversion of Atkinson & Boore (1995).
|
MB_TO_MW_JOHNSTON
mb to Mw conversion of Johnston (1996).
|
NONE
Performs no conversion.
|
| Modifier and Type | Method and Description |
|---|---|
abstract double |
convert(double M)
Converts supplied magnitude value.
|
static MagConverter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MagConverter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MagConverter MB_TO_MW_JOHNSTON
Reference: Johnston, A.C., 1996, Seismic moment assessment of earthquakes in stable continental regions—I. Instrumental seismicity: Geophysical Journal International, v. 126, p. 381–414.
public static final MagConverter MB_TO_MW_ATKIN_BOORE
Reference: Atkinson, G.M., and Boore, D.M., 1995, Ground motion relations for eastern North America: Bulletin of the Seismological Society of America, v. 85, p. 17–30.
public static final MagConverter NONE
public static MagConverter[] values()
for (MagConverter c : MagConverter.values()) System.out.println(c);
public static MagConverter valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract double convert(double M)
M - magnitude to convert