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
ConstructorsConstructorDescriptionXRayFormFactor(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 TypeMethodDescriptiondoublefdoublef_nstatic double[]getFormFactorA(String atom) getFormFactorAstatic double[]getFormFactorB(String atom) getFormFactorBstatic intgetFormFactorIndex(String atom) getFormFactorIndexdoublerho(double f, double lambda, double[] xyz) Compute the real space density rhovoidrhoGrad(double[] xyz, double dfc, RefinementMinimize.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
-
XRayFormFactor
Constructor for XRayFormFactor.- Parameters:
atom- aAtomobject.
-
XRayFormFactor
Constructor for XRayFormFactor.- Parameters:
atom- aAtomobject.use3G- a boolean.
-
XRayFormFactor
Constructor for XRayFormFactor.- Parameters:
atom- aAtomobject.use3G- a boolean.badd- a double.
-
XRayFormFactor
Constructor for XRayFormFactor.- Parameters:
atom- aAtomobject.use3G- a boolean.badd- a double.xyz- an array of double.
-
-
Method Details
-
getFormFactorA
getFormFactorA- Parameters:
atom- aStringobject.- Returns:
- an array of double.
-
getFormFactorB
getFormFactorB- Parameters:
atom- aStringobject.- Returns:
- an array of double.
-
getFormFactorIndex
getFormFactorIndex- Parameters:
atom- aStringobject.- Returns:
- a int.
-
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-RefinementMinimize.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.
-