Package ffx.xray
Class XRayFormFactor
java.lang.Object
ffx.xray.XRayFormFactor
- All Implemented Interfaces:
FormFactor
This implementation uses the coefficients from Su and Coppens and 3 coefficient parameters derived
from CCTBX.
- Since:
- 1.0
- Author:
- Timothy D. Fenn
- See Also:
-
Constructor Summary
ConstructorDescriptionXRayFormFactor
(Atom atom) Constructor for XRayFormFactor.XRayFormFactor
(Atom atom, boolean use3G) Constructor for XRayFormFactor.XRayFormFactor
(Atom atom, boolean use3G, double badd) Constructor for XRayFormFactor.XRayFormFactor
(Atom atom, boolean use3G, double badd, double[] xyz) Constructor for XRayFormFactor. -
Method Summary
Modifier and TypeMethodDescriptiondouble
fdouble
f_nstatic double[]
getFormFactorA
(String atom) getFormFactorAstatic double[]
getFormFactorB
(String atom) getFormFactorBstatic int
getFormFactorIndex
(String atom) getFormFactorIndexdouble
rho
(double f, double lambda, double[] xyz) Compute the real space density rhovoid
rhoGrad
(double[] xyz, double dfc, RefinementMinimize.RefinementMode refinementMode) Compute the real space gradientvoid
update
(double[] xyz) update the coordinates to the current positionvoid
update
(double[] xyz, double bAdd) update the coordinates to the current position and Badd
-
Constructor Details
-
XRayFormFactor
Constructor for XRayFormFactor.- Parameters:
atom
- aAtom
object.
-
XRayFormFactor
Constructor for XRayFormFactor.- Parameters:
atom
- aAtom
object.use3G
- a boolean.
-
XRayFormFactor
Constructor for XRayFormFactor.- Parameters:
atom
- aAtom
object.use3G
- a boolean.badd
- a double.
-
XRayFormFactor
Constructor for XRayFormFactor.- Parameters:
atom
- aAtom
object.use3G
- a boolean.badd
- a double.xyz
- an array of double.
-
-
Method Details
-
getFormFactorA
getFormFactorA- Parameters:
atom
- aString
object.- Returns:
- an array of double.
-
getFormFactorB
getFormFactorB- Parameters:
atom
- aString
object.- Returns:
- an array of double.
-
getFormFactorIndex
getFormFactorIndex- Parameters:
atom
- aString
object.- Returns:
- a int.
-
f
f- Parameters:
hkl
- aHKL
object.- Returns:
- a double.
-
fN
f_n- Parameters:
hkl
- aHKL
object.nGaussians
- a int.- Returns:
- a double.
-
rho
public double rho(double f, double lambda, double[] xyz) Compute the real space density rho- Specified by:
rho
in interfaceFormFactor
- Parameters:
f
- the current density to modifylambda
- the state variablexyz
- the requested point for evaluating density- Returns:
- the real space density value at xyz
-
rhoGrad
Compute the real space gradient- Specified by:
rhoGrad
in interfaceFormFactor
- Parameters:
xyz
- the requested point for evaluating gradientdfc
- the multiplier to apply to the gradientrefinementMode
-RefinementMinimize.RefinementMode
determines which gradients will be computed
-
update
public void update(double[] xyz) update the coordinates to the current position- Specified by:
update
in interfaceFormFactor
- Parameters:
xyz
- an array of double.
-
update
public void update(double[] xyz, double bAdd) update the coordinates to the current position and Badd- Specified by:
update
in interfaceFormFactor
- Parameters:
xyz
- an array of double.bAdd
- a double.
-