|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.data.function.AbstractXY_DataSet
org.opensha.commons.data.function.AbstractDiscretizedFunc
org.opensha.commons.data.function.EvenlyDiscretizedFunc
org.opensha.commons.data.function.EvenlyDiscrFuncWithParams
public class EvenlyDiscrFuncWithParams
Title: EvenlyDiscrFuncWithParams
Description: Subclass of the EvenlyDiscretizedFunc that also includes a ParameterList of paramters associated with the function. Not much different but provides methods for dealing with the parameter list and overides such methods as toString(), equals(), etc. These extra methods are put in an interface FuncWithParamsAPI. Therefore this class implements that interface as well as the DiscretizedFuncAPI.
In the case of the IMRTesterApplet the parameters represent the input argument values that went into calculating the IMR.
EvenlyDiscretizedFunc,
FuncWithParams,
AbstractDiscretizedFunc,
DiscretizedFuncAPIFunc,
ParameterList,
Serialized Form| Field Summary | |
|---|---|
protected ParameterList |
list
This parameter list is the set of parameters that went into calculation this DiscretizedFunction. |
| Fields inherited from class org.opensha.commons.data.function.EvenlyDiscretizedFunc |
|---|
C, D, delta, first, maxX, minX, num, points |
| Fields inherited from class org.opensha.commons.data.function.AbstractDiscretizedFunc |
|---|
tolerance, XML_METADATA_NAME, XML_METADATA_POINT_NAME, XML_METADATA_POINTS_NAME |
| Fields inherited from class org.opensha.commons.data.function.AbstractXY_DataSet |
|---|
info, name, xAxisName, yAxisName |
| Constructor Summary | |
|---|---|
EvenlyDiscrFuncWithParams(double min,
int num,
double delta)
|
|
EvenlyDiscrFuncWithParams(double min,
int num,
double delta,
ParameterList list)
|
|
| Method Summary | |
|---|---|
DiscretizedFunc |
deepClone()
Returns a copy of this and all points in this DiscretizedFunction. |
boolean |
equalParameterNames(FuncWithParams function)
Returns true if the second function has the same named parameters in it's list, values may be different. |
boolean |
equalParameterNamesAndValues(FuncWithParams function)
Returns true if two DefaultXYDiscretizedFunction2D have the same independent parameters; name and value. |
boolean |
equals(FuncWithParams function)
Determines if two functions are the same with respect to the parameters that were used to calculate the function, NOT THAT EACH POINT IS THE SAME. |
String |
getInfo()
Returns the info of this function. |
ParameterList |
getParameterList()
This parameter list is the set of parameters that went into calculation this DiscretizedFunction. |
String |
getParametersString()
Returns name/value pairs, separated with commas, as one string, usefule for legends, etc. |
void |
setParameterList(ParameterList list)
Set the parameter list from an external source |
String |
toString()
Returns all the parameters associated with the function as one string with no new lines, of the format: |
| Methods inherited from class org.opensha.commons.data.function.EvenlyDiscretizedFunc |
|---|
add, add, areAllXValuesInteger, clear, equalXAndYValues, equalXValues, get, getClosestXIndex, getClosestY, getDelta, getFirstInterpolatedX_inLogXLogYDomain, getFirstInterpolatedX, getIndex, getInterpolatedY_inLogXLogYDomain, getInterpolatedY_inLogYDomain, getInterpolatedY, getMaxX, getMaxY, getMetadataString, getMinX, getMinY, getNum, getPointsIterator, getX, getXIndex, getY, getY, hasPoint, hasPoint, set, set, set, set, set, withinTolerance |
| Methods inherited from class org.opensha.commons.data.function.AbstractDiscretizedFunc |
|---|
calcSumOfY_Vals, equals, fromXMLMetadata, getTolerance, loadFuncFromSimpleFile, loadFuncFromSimpleFile, scale, setTolerance, toXMLMetadata, toXMLMetadata, writeSimpleFuncFile, writeSimpleFuncFile |
| Methods inherited from class org.opensha.commons.data.function.AbstractXY_DataSet |
|---|
getClosestX, getName, getXAxisName, getXValuesIterator, getYAxisName, getYValuesIterator, iterator, setInfo, setName, setXAxisName, setYAxisName, xValues, yValues |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.opensha.commons.data.function.XY_DataSet |
|---|
getClosestX, getXAxisName, getXValuesIterator, getYAxisName, getYValuesIterator, setInfo, setName, setXAxisName, setYAxisName, xValues, yValues |
| Methods inherited from interface org.opensha.commons.data.Named |
|---|
getName |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Field Detail |
|---|
protected ParameterList list
| Constructor Detail |
|---|
public EvenlyDiscrFuncWithParams(double min,
int num,
double delta)
public EvenlyDiscrFuncWithParams(double min,
int num,
double delta,
ParameterList list)
| Method Detail |
|---|
public ParameterList getParameterList()
getParameterList in interface FuncWithParamspublic void setParameterList(ParameterList list)
setParameterList in interface FuncWithParamspublic String getParametersString()
getParametersString in interface FuncWithParamspublic String getInfo()
AbstractXY_DataSet
getInfo in interface XY_DataSetgetInfo in class AbstractXY_DataSetpublic boolean equalParameterNamesAndValues(FuncWithParams function)
equalParameterNamesAndValues in interface FuncWithParamspublic boolean equalParameterNames(FuncWithParams function)
equalParameterNames in interface FuncWithParamspublic DiscretizedFunc deepClone()
deepClone in interface DiscretizedFuncdeepClone in interface XY_DataSetdeepClone in class EvenlyDiscretizedFuncpublic boolean equals(FuncWithParams function)
public String toString()
name = value, name2 = value2, etc.
toString in interface XY_DataSettoString in class EvenlyDiscretizedFunc
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||