Package ffx.openmm

Class Discrete1DFunction

java.lang.Object
ffx.openmm.TabulatedFunction
ffx.openmm.Discrete1DFunction

public class Discrete1DFunction extends TabulatedFunction
This is a TabulatedFunction that computes a discrete one dimensional function f(x). To evaluate it, x is rounded to the nearest integer and the table element with that index is returned. If the index is outside the range [0, size), the result is undefined.
  • Constructor Details

    • Discrete1DFunction

      public Discrete1DFunction(com.sun.jna.ptr.PointerByReference values)
      Create a Discrete1DFunction f(x) based on a set of tabulated values.
      Parameters:
      values - the tabulated values of the function f(x)
  • Method Details

    • destroy

      public void destroy()
      Destroy the discrete 1D function.
      Specified by:
      destroy in class TabulatedFunction
    • getFunctionParameters

      public void getFunctionParameters(com.sun.jna.ptr.PointerByReference values)
      Get the parameters for the tabulated function.
      Parameters:
      values - the tabulated values of the function f(x)
    • setFunctionParameters

      public void setFunctionParameters(com.sun.jna.ptr.PointerByReference values)
      Set the parameters for the tabulated function.
      Parameters:
      values - the tabulated values of the function f(x)