Module m3DCS

Class CustomFunction

java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.blocks.CustomFunction
All Implemented Interfaces:
Manageable, Shareable, FloatToFloat

public class CustomFunction extends ShareableBase implements FloatToFloat
  • Field Details

  • Constructor Details

    • CustomFunction

      public CustomFunction()
    • CustomFunction

      public CustomFunction(String ss)
    • CustomFunction

      public CustomFunction(double value)
    • CustomFunction

      public CustomFunction(String ss, double minFV, double maxFV)
    • CustomFunction

      public CustomFunction(double value, double minFV, double maxFV)
  • Method Details

    • setValues

      public void setValues(Tuple2f id, Tuple3f nutrientsValues, Tuple2f h, float d)
    • evaluateFloat

      public float evaluateFloat(float x)
      Description copied from interface: FloatToFloat
      Computes the value of this function at x.
      Specified by:
      evaluateFloat in interface FloatToFloat
      Parameters:
      x - where the function is to be evaluated
      Returns:
      function value at x
    • evaluateFloat

      public float evaluateFloat()
    • evaluateFloat

      public float evaluateFloat(float x, Tuple2f id, Tuple3f nutrientsValues, Tuple2f h, float d)
    • evaluateFloat

      public float evaluateFloat(Tuple2f id, Tuple3f nutrientsValues, Tuple2f h, float d)
    • evaluateZerro

      public float evaluateZerro()
    • setFunction

      public void setFunction(String value)
    • setFunction

      public void setFunction(double value)
    • getManageableType

      public ManageableType getManageableType()
      Specified by:
      getManageableType in interface Manageable
    • getP

      public float getP()
    • getFunction

      public String getFunction()