Package ffx.openmm
Class Discrete1DFunction
java.lang.Object
ffx.openmm.TabulatedFunction
ffx.openmm.Discrete1DFunction
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.
-
Field Summary
Fields inherited from class ffx.openmm.TabulatedFunction
pointer
-
Constructor Summary
ConstructorsConstructorDescriptionDiscrete1DFunction
(com.sun.jna.ptr.PointerByReference values) Create a Discrete1DFunction f(x) based on a set of tabulated values. -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Destroy the discrete 1D function.void
getFunctionParameters
(com.sun.jna.ptr.PointerByReference values) Get the parameters for the tabulated function.void
setFunctionParameters
(com.sun.jna.ptr.PointerByReference values) Set the parameters for the tabulated function.Methods inherited from class ffx.openmm.TabulatedFunction
getPeriodic, getPointer, getUpdateCount
-
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 classTabulatedFunction
-
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)
-