java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.blocks.CustomFunction
- All Implemented Interfaces:
Manageable
,Shareable
,FloatToFloat
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CustomFunction.Type
static final SCOType.Field
static final SCOType.Field
-
Constructor Summary
ConstructorDescriptionCustomFunction
(double value) CustomFunction
(double value, double minFV, double maxFV) CustomFunction
(String ss) CustomFunction
(String ss, double minFV, double maxFV) -
Method Summary
Modifier and TypeMethodDescriptionfloat
float
evaluateFloat
(float x) Computes the value of this function atx
.float
evaluateFloat
(float x, Tuple2f id, Tuple3f nutrientsValues, Tuple2f h, float d) float
evaluateFloat
(Tuple2f id, Tuple3f nutrientsValues, Tuple2f h, float d) float
float
getP()
void
setFunction
(double value) void
setFunction
(String value) void
Methods 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:FloatToFloat
Computes the value of this function atx
.- Specified by:
evaluateFloat
in 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:
getManageableType
in interfaceManageable
-
getP
public float getP() -
getFunction
-