|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.sra.vulnerability.AbstractVulnerability
org.opensha.sra.vulnerability.models.SimpleVulnerability
public class SimpleVulnerability
This is a simple, perhaps temporary class for instantiating AbstractVulerability objects from files.
| Field Summary |
|---|
| Fields inherited from class org.opensha.sra.vulnerability.AbstractVulnerability |
|---|
ADF, BDF, im_type, name, PGA, SA, shortName |
| Constructor Summary | |
|---|---|
SimpleVulnerability(String name,
String shortName,
String im_type,
ArrayList<Double> im_levels,
ArrayList<Double> mdfVals,
ArrayList<Double> covVals)
|
|
| Method Summary | |
|---|---|
AbstractDiscretizedFunc |
getCOVFunction()
|
double[] |
getDEMDFVals()
Gets or computes the DF values that correspond the the Damage Exceedance Matrix. |
double[][] |
getDEMMatrix()
Gets or creates the Damage Exceedance Matrix associated with the current vulnerability model. |
double |
getDF(double IML)
Interpolates the MDF values found in the DFTable for the given IML. |
ArrayList<double[]> |
getDFTable()
The DF Lookup Table has dimension NIML x 3 and holds the IML, MDF, and COV values associated with the current Vulnerability Model. |
double |
getMeanDamageAtExceedProb(double iml,
double prob)
Returns the mean damage with probability P of being exceeded given P and an IML (in linear space). |
double |
getMeanDamageFactor(double iml)
Returns the mean damage factor at the given IML in linear space. |
AbstractDiscretizedFunc |
getVulnerabilityFunc()
original javadoc: TODO clean Gets the IML values and DF values and maps them into the X,Y values (respectively) of a new DiscretizedFunc. |
String |
toString()
|
| Methods inherited from class org.opensha.sra.vulnerability.AbstractVulnerability |
|---|
getADF, getAssetType, getBDF, getDFVals, getExceedProb, getHazardTemplate, getIMLValues, getIMT, getLossStdDev, getLossType, getMaxIMLVal, getMinIMLVal, getName, getParameters, getPeriod, getShortName, setParameter, setPeriod |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleVulnerability(String name,
String shortName,
String im_type,
ArrayList<Double> im_levels,
ArrayList<Double> mdfVals,
ArrayList<Double> covVals)
| Method Detail |
|---|
public double[] getDEMDFVals()
AbstractVulnerability
getDEMDFVals in class AbstractVulnerabilitypublic double[][] getDEMMatrix()
AbstractVulnerability
getDEMMatrix in class AbstractVulnerabilitypublic double getDF(double IML)
AbstractVulnerability
getDF in class AbstractVulnerabilityIML - The desired Intensity Measure Level.
public ArrayList<double[]> getDFTable()
AbstractVulnerability
\________________________________________________
IML | IML1 IML2 IML3 .... IML(NIML)
MDF | MDF1 MDF2 MDF3 .... MDF(NIML)
COV | COV1 COV2 COV3 .... COV(NIML
getDFTable in class AbstractVulnerabilitypublic AbstractDiscretizedFunc getVulnerabilityFunc()
AbstractVulnerabilityDiscretizedFunc.
getVulnerabilityFunc in interface VulnerabilitygetVulnerabilityFunc in class AbstractVulnerabilityDiscretizedFunc with X,Y values corresponding
to the IML,DF values respectively. The function will have NIML points.public String toString()
toString in class Object
public double getMeanDamageAtExceedProb(double iml,
double prob)
Vulnerability
getMeanDamageAtExceedProb in interface VulnerabilitygetMeanDamageAtExceedProb in class AbstractVulnerabilitypublic AbstractDiscretizedFunc getCOVFunction()
public double getMeanDamageFactor(double iml)
Vulnerability
getMeanDamageFactor in interface VulnerabilitygetMeanDamageFactor in class AbstractVulnerability
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||