java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.blocks.CustomFunction
- All Implemented Interfaces:
Manageable,Shareable,FloatToFloat
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CustomFunction.Typestatic final SCOType.Fieldstatic final SCOType.Field -
Constructor Summary
ConstructorsConstructorDescriptionCustomFunction(double value) CustomFunction(double value, double minFV, double maxFV) CustomFunction(String ss) CustomFunction(String ss, double minFV, double maxFV) -
Method Summary
Modifier and TypeMethodDescriptionfloatfloatevaluateFloat(float x) Computes the value of this function atx.floatevaluateFloat(float x, Tuple2f id, Tuple3f nutrientsValues, Tuple2f h, float d) floatevaluateFloat(Tuple2f id, Tuple3f nutrientsValues, Tuple2f h, float d) floatfloatgetP()voidsetFunction(double value) voidsetFunction(String value) voidMethods inherited from class de.grogra.persistence.ShareableBase
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReference
-
Field Details
-
$TYPE
-
function$FIELD
-
p$FIELD
-
-
Constructor Details
-
CustomFunction
public CustomFunction() -
CustomFunction
-
CustomFunction
public CustomFunction(double value) -
CustomFunction
-
CustomFunction
public CustomFunction(double value, double minFV, double maxFV)
-
-
Method Details
-
setValues
-
evaluateFloat
public float evaluateFloat(float x) Description copied from interface:FloatToFloatComputes the value of this function atx.- Specified by:
evaluateFloatin interfaceFloatToFloat- Parameters:
x- where the function is to be evaluated- Returns:
- function value at
x
-
evaluateFloat
public float evaluateFloat() -
evaluateFloat
-
evaluateFloat
-
evaluateZerro
public float evaluateZerro() -
setFunction
-
setFunction
public void setFunction(double value) -
getManageableType
- Specified by:
getManageableTypein interfaceManageable
-
getP
public float getP() -
getFunction
-