Package ffx.crystal
Class Resolution
java.lang.Object
ffx.crystal.Resolution
The Resolution class encapsulates the sampling limits and resolution limits for a given crystal
and/or data set.
- Since:
- 1.0
- Author:
- Timothy D. Fenn
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doubleThe resolution of the data set.final doubleThe sampling limit for the data set. -
Constructor Summary
ConstructorsConstructorDescriptionResolution(double resolution) Constructor for Resolution.Resolution(double resolution, double sampling) Constructor for Resolution. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResolutioncheckProperties(org.apache.commons.configuration2.CompositeConfiguration properties, boolean isNeutron, double defaultResolution) checkPropertiesbooleaninInverseResSqRange(double res) inInverseResSqRangebooleaninResolutionRange(double res) inResolutionRangedoubleinverseResSqLimitdoubleresolutionLimitdoublesamplingLimittoString()Returns a string representation of the Resolution object, including the resolution and sampling values.
-
Field Details
-
sampling
public final double samplingThe sampling limit for the data set. -
resolution
public final double resolutionThe resolution of the data set.
-
-
Constructor Details
-
Resolution
public Resolution(double resolution, double sampling) Constructor for Resolution.- Parameters:
resolution- a double.sampling- a double.
-
Resolution
public Resolution(double resolution) Constructor for Resolution.- Parameters:
resolution- a double.
-
-
Method Details
-
toString
Returns a string representation of the Resolution object, including the resolution and sampling values. -
checkProperties
public static Resolution checkProperties(org.apache.commons.configuration2.CompositeConfiguration properties, boolean isNeutron, double defaultResolution) checkProperties- Parameters:
properties- aCompositeConfigurationobject.isNeutron- If true, this is a neutron diffraction data set.defaultResolution- The resolution from the reflection file.- Returns:
- a
Resolutionobject.
-
inInverseResSqRange
public boolean inInverseResSqRange(double res) inInverseResSqRange- Parameters:
res- a double.- Returns:
- a boolean.
-
inResolutionRange
public boolean inResolutionRange(double res) inResolutionRange- Parameters:
res- a double.- Returns:
- a boolean.
-
inverseResSqLimit
public double inverseResSqLimit()inverseResSqLimit- Returns:
- a double.
-
resolutionLimit
public double resolutionLimit()resolutionLimit- Returns:
- a double.
-
samplingLimit
public double samplingLimit()samplingLimit- Returns:
- a double.
-