Discrete1DFunction¶
- class openmm.openmm.Discrete1DFunction(values)¶
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.
- __init__(self, values) → 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.
Methods
Copy
(self)__init__
(self, values)This is a TabulatedFunction that computes a discrete one dimensional function f(x).
getFunctionParameters
(self)getPeriodic
(self)Get the periodicity status of the tabulated function.
setFunctionParameters
(self, values)Attributes
The membership flag
- property thisown¶
The membership flag
- getFunctionParameters(self)¶
- setFunctionParameters(self, values)¶
- Copy(self) → Discrete1DFunction¶
Deprecated
This will be removed in a future release.
- __eq__(self, other) → bool¶
- __ne__(self, other) → bool¶
- getPeriodic(self) → bool¶
Get the periodicity status of the tabulated function.