Package ffx.xray
Class DiffractionRefinementData
java.lang.Object
ffx.xray.DiffractionRefinementData
DiffractionRefinementData class.
- Since:
- 1.0
- Author:
- Timothy D. Fenn
-
Field Summary
Modifier and TypeFieldDescriptionfinal double[][]
Calculated atomic structure factors.final double[][]
mFo - DFc coefficients.final double[][]
Figure of merit and phase.final int[]
Array of R free flags;final double[][]
Calculated bulk solvent structure factors.final double
final int
Number of reflections in the data set.int
Duplicated settings - these are also in DiffractionData, but duplicated here until settings are put in their own class.double[]
SigmaA coefficient - s.double[]
SigmaA coefficient - w.double[]
Spine scaling coefficients. -
Constructor Summary
ConstructorDescriptionDiffractionRefinementData
(org.apache.commons.configuration2.CompositeConfiguration properties, ReflectionList reflectionList) allocate data given aReflectionList
-
Method Summary
Modifier and TypeMethodDescriptiondouble
fcF
(int i) get the amplitude of a complex Fcdouble
fcPhi
(int i) get the phase of a complex Fcdouble
fcTotF
(int i) fcTotFdouble
fcTotPhi
(int i) fcTotPhidouble
foFc1F
(int i) foFc1Fdouble
foFc1Phi
(int i) foFc1Phidouble
FoFc2F
(int i) FoFc2Fdouble
FoFc2Phi
(int i) FoFc2Phidouble
fsF
(int i) fsFdouble
fsPhi
(int i) fsPhivoid
generateFsigFfromAnomalousFsigF
(double[][] anomalousFsigF) Generate average F/sigF from anomalous F/sigF.void
Mark 5% of reflections for cross validation (R free flags).double
getF
(int i) getFgetFcTot
(int i) getFcTotgetFoFc1
(int i) getFoFc1void
getFoFc1IP
(int i, ComplexNumber c) getFoFc1IPgetFoFc2
(int i) getFoFc2void
getFoFc2IP
(int i, ComplexNumber c) getFoFc2IPint
getFreeR
(int i) getFreeRgetFs
(int i) getFsdouble[]
getFSigF
(int i) getFSigFdouble
getSigF
(int i) getSigFvoid
Generate amplitudes from intensities.boolean
isFreeR
(int i, int f) isFreeRdouble
return the current likelihooddouble
return the current likelihoodvoid
setF
(int i, double f) Set amplitude (F).void
setFc
(int i, ComplexNumber c) set complex Fcvoid
setFcTot
(int i, ComplexNumber c) setFcTotvoid
setFoFc1
(int i, ComplexNumber c) setFoFc1void
setFoFc2
(int i, ComplexNumber c) setFoFc2void
setFreeR
(int i, int f) Set FreeR value flag of a reflection.void
setFreeRFlag
(int i) Set FreeR value flag.void
setFs
(int i, ComplexNumber c) setFsvoid
setFSigF
(int i, double f, double sigf) Set amplitude and sigF.void
setSigF
(int i, double sigF) Set amplitude sigma (sigF).
-
Field Details
-
n
public final int nNumber of reflections in the data set. -
freeR
public final int[] freeRArray of R free flags; -
fc
public final double[][] fcCalculated atomic structure factors. -
fs
public final double[][] fsCalculated bulk solvent structure factors. -
fomPhi
public final double[][] fomPhiFigure of merit and phase. -
foFc1
public final double[][] foFc1mFo - DFc coefficients. -
fSigFCutoff
public final double fSigFCutoff -
spline
public double[] splineSpine scaling coefficients. -
sigmaA
public double[] sigmaASigmaA coefficient - s. -
sigmaW
public double[] sigmaWSigmaA coefficient - w. -
rFreeFlag
public int rFreeFlagDuplicated settings - these are also in DiffractionData, but duplicated here until settings are put in their own class.
-
-
Constructor Details
-
DiffractionRefinementData
public DiffractionRefinementData(org.apache.commons.configuration2.CompositeConfiguration properties, ReflectionList reflectionList) allocate data given aReflectionList
- Parameters:
properties
- configuration propertiesreflectionList
-ReflectionList
to use to allocate data
-
-
Method Details
-
FoFc2F
public double FoFc2F(int i) FoFc2F- Parameters:
i
- a int.- Returns:
- a double.
-
FoFc2Phi
public double FoFc2Phi(int i) FoFc2Phi- Parameters:
i
- a int.- Returns:
- a double.
-
fcF
public double fcF(int i) get the amplitude of a complex Fc- Parameters:
i
- reflection to get- Returns:
- amplitude of Fc
-
fcPhi
public double fcPhi(int i) get the phase of a complex Fc- Parameters:
i
- reflection to get- Returns:
- phase of Fc
-
fcTotF
public double fcTotF(int i) fcTotF- Parameters:
i
- a int.- Returns:
- a double.
-
fcTotPhi
public double fcTotPhi(int i) fcTotPhi- Parameters:
i
- a int.- Returns:
- a double.
-
foFc1F
public double foFc1F(int i) foFc1F- Parameters:
i
- a int.- Returns:
- a double.
-
foFc1Phi
public double foFc1Phi(int i) foFc1Phi- Parameters:
i
- a int.- Returns:
- a double.
-
fsF
public double fsF(int i) fsF- Parameters:
i
- a int.- Returns:
- a double.
-
fsPhi
public double fsPhi(int i) fsPhi- Parameters:
i
- a int.- Returns:
- a double.
-
generateFsigFfromAnomalousFsigF
public void generateFsigFfromAnomalousFsigF(double[][] anomalousFsigF) Generate average F/sigF from anomalous F/sigF.- Parameters:
anomalousFsigF
- an array of double.
-
generateRFree
public void generateRFree()Mark 5% of reflections for cross validation (R free flags). -
getF
public double getF(int i) getF- Parameters:
i
- a int.- Returns:
- a double.
-
getFSigF
public double[] getFSigF(int i) getFSigF- Parameters:
i
- a int.- Returns:
- an array of double.
-
getFcTot
getFcTot- Parameters:
i
- a int.- Returns:
- a
ComplexNumber
object.
-
getFoFc1
getFoFc1- Parameters:
i
- a int.- Returns:
- a
ComplexNumber
object.
-
getFoFc1IP
getFoFc1IP- Parameters:
i
- a int.c
- aComplexNumber
object.
-
getFoFc2
getFoFc2- Parameters:
i
- a int.- Returns:
- a
ComplexNumber
object.
-
getFoFc2IP
getFoFc2IP- Parameters:
i
- a int.c
- aComplexNumber
object.
-
getFreeR
public int getFreeR(int i) getFreeR- Parameters:
i
- a int.- Returns:
- a int.
-
getFs
getFs- Parameters:
i
- a int.- Returns:
- a
ComplexNumber
object.
-
getSigF
public double getSigF(int i) getSigF- Parameters:
i
- a int.- Returns:
- a double.
-
intensitiesToAmplitudes
public void intensitiesToAmplitudes()Generate amplitudes from intensities.This does NOT use French and Wilson caling, but just a simple square root.
-
isFreeR
public boolean isFreeR(int i, int f) isFreeR- Parameters:
i
- a int.f
- a int.- Returns:
- a boolean.
-
likelihoodFree
public double likelihoodFree()return the current likelihood- Returns:
- the free likelihood (Rfree based)
-
likelihoodWork
public double likelihoodWork()return the current likelihood- Returns:
- the work likelihood (non-Rfree based)
-
setF
public void setF(int i, double f) Set amplitude (F).- Parameters:
i
- reflection to setf
- value of F desired
-
setFSigF
public void setFSigF(int i, double f, double sigf) Set amplitude and sigF.- Parameters:
i
- reflection to setf
- value of F desiredsigf
- value of sigF desired
-
setFc
set complex Fc- Parameters:
i
- reflection to setc
-ComplexNumber
to set reflection to
-
setFcTot
setFcTot- Parameters:
i
- a int.c
- aComplexNumber
object.
-
setFoFc1
setFoFc1- Parameters:
i
- a int.c
- aComplexNumber
object.
-
setFoFc2
setFoFc2- Parameters:
i
- a int.c
- aComplexNumber
object.
-
setFreeR
public void setFreeR(int i, int f) Set FreeR value flag of a reflection.- Parameters:
i
- reflection to setf
- FreeR value to set reflection to
-
setFreeRFlag
public void setFreeRFlag(int i) Set FreeR value flag.- Parameters:
i
- If FreeR value is i, it is marked for cross validation.
-
setFs
setFs- Parameters:
i
- a int.c
- aComplexNumber
object.
-
setSigF
public void setSigF(int i, double sigF) Set amplitude sigma (sigF).- Parameters:
i
- reflection to setsigF
- value of sigF desired
-