de.grogra.blocks
public class CustomFunction extends ShareableBase implements FloatToFloat
| Modifier and Type | Class and Description |
|---|---|
static class |
CustomFunction.Type |
| Modifier and Type | Field and Description |
|---|---|
static CustomFunction.Type |
$TYPE |
static SCOType.Field |
function$FIELD |
static SCOType.Field |
p$FIELD |
| Constructor and Description |
|---|
CustomFunction() |
CustomFunction(double value) |
CustomFunction(double value,
double minFV,
double maxFV) |
CustomFunction(java.lang.String ss) |
CustomFunction(java.lang.String ss,
double minFV,
double maxFV) |
| Modifier and Type | Method and Description |
|---|---|
float |
evaluateFloat() |
float |
evaluateFloat(float x)
Computes the value of this function at
x. |
float |
evaluateFloat(float x,
Tuple2f id,
Tuple3f nutrientsValues,
Tuple2f h,
float d) |
float |
evaluateFloat(Tuple2f id,
Tuple3f nutrientsValues,
Tuple2f h,
float d) |
float |
evaluateZerro() |
java.lang.String |
getFunction() |
ManageableType |
getManageableType() |
float |
getP() |
void |
setFunction(double value) |
void |
setFunction(java.lang.String value) |
void |
setValues(Tuple2f id,
Tuple3f nutrientsValues,
Tuple2f h,
float d) |
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReferencepublic static final CustomFunction.Type $TYPE
public static final SCOType.Field function$FIELD
public static final SCOType.Field p$FIELD
public CustomFunction()
public CustomFunction(double value)
public CustomFunction(double value,
double minFV,
double maxFV)
public CustomFunction(java.lang.String ss)
public CustomFunction(java.lang.String ss,
double minFV,
double maxFV)
public float evaluateFloat()
public float evaluateFloat(float x)
FloatToFloatx.evaluateFloat in interface FloatToFloatx - where the function is to be evaluatedxpublic float evaluateFloat(float x,
Tuple2f id,
Tuple3f nutrientsValues,
Tuple2f h,
float d)
public float evaluateZerro()
public java.lang.String getFunction()
public ManageableType getManageableType()
getManageableType in interface Manageablepublic float getP()
public void setFunction(double value)
public void setFunction(java.lang.String value)