|
||||||||||
| 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.ArbitrarilyDiscretizedFunc
org.opensha.commons.data.function.ArbDiscrFuncWithParams
public class ArbDiscrFuncWithParams
Title: ArbDiscrFuncWithParams
Description: Subclass of the ArbitrarlyDiscretizedFunc that also includes a ParameterList of paramters associated with the function. Not much different that parent class 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.
This function implements FuncWithParamsAPI so it maintains a ParameterList internally. These parameters are the values of the input variables that went into calculating this function.
DiscretizedFunction2D,
XYDiscretizedFunction2DAPI,
DiscretizedFunction2DAPI,
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.ArbitrarilyDiscretizedFunc |
|---|
C, D, 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 | |
|---|---|
ArbDiscrFuncWithParams()
basic No-Arg constructor |
|
ArbDiscrFuncWithParams(ParameterList list)
Sets all values for this special type of DiscretizedFunction |
|
ArbDiscrFuncWithParams(Point2DComparator comparator)
The passed in comparator must be an implementor of DataPoint2DComparatorAPI. |
|
| Method Summary | |
|---|---|
ArbDiscrFuncWithParams |
deepClone()
This function returns a new copy of this list, including copies of all the points. |
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 the second function has the same named parameter values. |
boolean |
equalParameters(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 |
| Methods inherited from class org.opensha.commons.data.function.ArbitrarilyDiscretizedFunc |
|---|
clear, equalXValues, get, getFirstInterpolatedX_inLogXLogYDomain, getFirstInterpolatedX, getIndex, getInterpExterpY_inLogYDomain, getInterpolatedY_inLogXLogYDomain, getInterpolatedY_inLogYDomain, getInterpolatedY, getMaxX, getMaxY, getMetadataString, getMinX, getMinY, getNum, getPointsIterator, getX, getXIndex, getXVals, getY, getY, getYVals, getYY_Function, hasPoint, hasPoint, iterator, main, set, set, set, setTolerance, toDebugString, toString |
| Methods inherited from class org.opensha.commons.data.function.AbstractDiscretizedFunc |
|---|
calcSumOfY_Vals, equals, fromXMLMetadata, getTolerance, loadFuncFromSimpleFile, loadFuncFromSimpleFile, scale, toXMLMetadata, toXMLMetadata, writeSimpleFuncFile, writeSimpleFuncFile |
| Methods inherited from class org.opensha.commons.data.function.AbstractXY_DataSet |
|---|
areAllXValuesInteger, getClosestX, getClosestY, getDatasetsToPlot, getName, getPlotNumColorList, getXAxisName, getXValuesIterator, getYAxisName, getYValuesIterator, 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 |
|---|
areAllXValuesInteger, getClosestX, getClosestY, getXAxisName, getXValuesIterator, getYAxisName, getYValuesIterator, setInfo, setName, setXAxisName, setYAxisName, xValues, yValues |
| Methods inherited from interface org.opensha.commons.gui.plot.PlotElement |
|---|
getDatasetsToPlot, getPlotNumColorList |
| Methods inherited from interface org.opensha.commons.data.Named |
|---|
getName |
| Field Detail |
|---|
protected ParameterList list
| Constructor Detail |
|---|
public ArbDiscrFuncWithParams(Point2DComparator comparator)
public ArbDiscrFuncWithParams()
public ArbDiscrFuncWithParams(ParameterList list)
| Method Detail |
|---|
public String getInfo()
getInfo in interface XY_DataSetgetInfo in interface PlotElementgetInfo in class AbstractXY_DataSetpublic ParameterList getParameterList()
getParameterList in interface FuncWithParamspublic void setParameterList(ParameterList list)
setParameterList in interface FuncWithParamspublic String getParametersString()
getParametersString in interface FuncWithParamspublic boolean equalParameterNamesAndValues(FuncWithParams function)
equalParameterNamesAndValues in interface FuncWithParamspublic boolean equalParameterNames(FuncWithParams function)
equalParameterNames in interface FuncWithParamspublic ArbDiscrFuncWithParams deepClone()
A shallow clone would only create a new DiscretizedFunc instance, but would maintain a reference to the original points.
Since this is a clone, you can modify it without changing the original.
deepClone in interface DiscretizedFuncdeepClone in interface XY_DataSetdeepClone in class ArbitrarilyDiscretizedFuncpublic boolean equalParameters(FuncWithParams function)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||