Package ffx.xray
Class SolventPolyFormFactor
java.lang.Object
ffx.xray.SolventPolyFormFactor
- All Implemented Interfaces:
FormFactor
SolventPolyFormFactor class.
- Since:
- 1.0
- Author:
- Timothy D. Fenn
-
Constructor Summary
ConstructorsConstructorDescriptionSolventPolyFormFactor(Atom atom, double arad, double w) Constructor for SolventPolyFormFactor.SolventPolyFormFactor(Atom atom, double arad, double w, double[] xyz) Constructor for SolventPolyFormFactor. -
Method Summary
Modifier and TypeMethodDescriptiondoublerho(double f, double lambda, double ri) rhodoublerho(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
-
Method Details
-
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
-
rho
public double rho(double f, double lambda, double ri) rho- Parameters:
f- a double.lambda- a double.ri- a double.- Returns:
- a double.
-
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.
-