Package ffx.xray.scatter
Class XRayFormFactor
java.lang.Object
ffx.xray.scatter.XRayFormFactor
- All Implemented Interfaces:
FormFactor
This implementation uses either coefficients from Su and Coppens or 3 coefficient parameters derived
from CCTBX.
- Since:
- 1.0
- Author:
- Timothy D. Fenn
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionXRayFormFactor(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 TypeMethodDescriptiondoublefdoublef_ndoublerho(double f, double lambda, double[] xyz) Compute the real space density rhovoidrhoGrad(double[] xyz, double dfc, RefinementMode refinementMode) Compute the real space gradientvoidupdate(double[] xyz) update the coordinates to the current positionvoidupdate(double[] xyz, double bAdd) update the coordinates to the current position and Badd
-
Constructor Details
-
Method Details
-
f
f- Parameters:
hkl- aHKLobject.- Returns:
- a double.
-
fN
f_n- Parameters:
hkl- aHKLobject.nGaussians- a int.- Returns:
- a double.
-
rho
public double rho(double f, double lambda, double[] xyz) Compute the real space density rho- Specified by:
rhoin 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:
rhoGradin interfaceFormFactor- Parameters:
xyz- the requested point for evaluating gradientdfc- the multiplier to apply to the gradientrefinementMode-RefinementModedetermines which gradients will be computed
-
update
public void update(double[] xyz) update the coordinates to the current position- Specified by:
updatein 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:
updatein interfaceFormFactor- Parameters:
xyz- an array of double.bAdd- a double.
-