FunctionMultiDimensional
, FunctionMultiDimensionalDifferentiable
public class CalcGradientDifferentiable extends java.lang.Object implements FunctionMultiDimensionalDifferentiable
Modifier and Type | Field | Description |
---|---|---|
IteratorDirective |
allAtoms |
|
Box |
box |
|
double |
forceConstant |
|
PotentialMaster |
potentialMaster |
Constructor | Description |
---|---|
CalcGradientDifferentiable(Box aBox,
PotentialMaster aPotentialMaster,
IMoleculeList movableSet,
Space _space) |
Modifier and Type | Method | Description |
---|---|---|
double |
df(int[] d,
double[] position) |
Returns the derivative indicated by the array d evaluated at the given point x.
|
double[] |
df2(int[] d,
double[] position) |
Uses the potential's force calculation at different displacements of a molecule in X, Y and Z
to determine the second derivative of the potential.
|
double |
f(double[] position) |
|
int |
getDimension() |
The dimension of the space of independent variables.
|
void |
setComponent(int aGradDcomponent) |
public Box box
public PotentialMaster potentialMaster
public double forceConstant
public IteratorDirective allAtoms
public CalcGradientDifferentiable(Box aBox, PotentialMaster aPotentialMaster, IMoleculeList movableSet, Space _space)
public void setComponent(int aGradDcomponent)
public double f(double[] position)
f
in interface FunctionMultiDimensional
public double df(int[] d, double[] position)
FunctionMultiDimensionalDifferentiable
df
in interface FunctionMultiDimensionalDifferentiable
public double[] df2(int[] d, double[] position)
d
- A one-dimensional array describing what column of our larger, global dF/dx array we are working with.position
- A one dimensional array of doubles describing the molecules positions.public int getDimension()
FunctionMultiDimensional
getDimension
in interface FunctionMultiDimensional