Package ffx.crystal
Class HKL
java.lang.Object
ffx.crystal.HKL
The HKL class represents a single reflection.
- Since:
- 1.0
- Author:
- Timothy D. Fenn
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intAllowed is used for centric reflections.protected intThe bin number of this reflection, which is used for resolution dependent R/Rfree.protected intThe epsilon value of the reflection, which is used for systematic absences.protected intThe h-index of the reflection.protected intThe unique index of this reflection.protected intThe k-index of the reflection.protected intThe l-index of the reflection. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancentric()Is this reflection centric?intepsilonc()epsiloncbooleandoublegetAllowedintgetBin()The bin number of this reflection, which is used for resolution dependent R/Rfree.intgetEpsilonintgetH()The h-index of the reflection.intgetIndex()Get the index of this reflection.intgetK()Get the k-index of the reflection.intgetL()Get the l-index of the reflection.inthashCode()neg()Negate the reflection.doublequadForm(double[][] mat) quadFormvoidsetAllowed(int allowed) setAllowedvoidsetBin(int bin) Set the bin number of this reflection, which is used for resolution dependent R/Rfree.voidsetEpsilon(int eps) setEpsilonvoidsetH(int h) Set the h-index of the reflection.voidsetIndex(int index) Set the index of this reflection.voidsetK(int k) Set the k-index of the reflection.voidsetL(int l) Set the l-index of the reflection.booleansysAbs()Is this reflection a systematic absence?toString()
-
Field Details
-
h
protected int hThe h-index of the reflection. -
k
protected int kThe k-index of the reflection. -
l
protected int lThe l-index of the reflection. -
epsilon
protected int epsilonThe epsilon value of the reflection, which is used for systematic absences. -
allowed
protected int allowedAllowed is used for centric reflections. -
bin
protected int binThe bin number of this reflection, which is used for resolution dependent R/Rfree. -
index
protected int indexThe unique index of this reflection.
-
-
Constructor Details
-
HKL
public HKL()Constructor for HKL. -
HKL
public HKL(int h, int k, int l) Constructor for HKL.- Parameters:
h- The h-index of the reflection.k- The k-index of the reflection.l- The l-index of the reflection.
-
HKL
public HKL(int h, int k, int l, int eps, int allowed) Constructor for HKL.- Parameters:
h- The h-index of the reflection.k- The k-index of the reflection.l- The l-index of the reflection.eps- an int.allowed- an int.
-
-
Method Details
-
neg
Negate the reflection.- Returns:
- a
HKLobject.
-
sysAbs
public boolean sysAbs()Is this reflection a systematic absence?- Returns:
- a boolean.
-
quadForm
public double quadForm(double[][] mat) quadForm- Parameters:
mat- an array of double.- Returns:
- a double.
-
getAllowed
public double getAllowed()getAllowed- Returns:
- a double.
-
setAllowed
public void setAllowed(int allowed) setAllowed- Parameters:
allowed- an int.
-
getBin
public int getBin()The bin number of this reflection, which is used for resolution dependent R/Rfree.- Returns:
- the bin number of this reflection.
-
setBin
public void setBin(int bin) Set the bin number of this reflection, which is used for resolution dependent R/Rfree.- Parameters:
bin- the bin number of this reflection.
-
centric
public boolean centric()Is this reflection centric?- Returns:
- a boolean.
-
getEpsilon
public int getEpsilon()getEpsilon- Returns:
- an int.
-
setEpsilon
public void setEpsilon(int eps) setEpsilon- Parameters:
eps- an int.
-
epsilonc
public int epsilonc()epsilonc- Returns:
- an int.
-
equals
-
getH
public int getH()The h-index of the reflection.- Returns:
- The h-index of the reflection.
-
setH
public void setH(int h) Set the h-index of the reflection.- Parameters:
h- The h-index of the reflection.
-
hashCode
public int hashCode() -
getIndex
public int getIndex()Get the index of this reflection.- Returns:
- an int.
-
setIndex
public void setIndex(int index) Set the index of this reflection.- Parameters:
index- The unique index of this reflection.
-
getK
public int getK()Get the k-index of the reflection.- Returns:
- an int.
-
setK
public void setK(int k) Set the k-index of the reflection.- Parameters:
k- an int.
-
getL
public int getL()Get the l-index of the reflection.- Returns:
- an int.
-
setL
public void setL(int l) Set the l-index of the reflection.- Parameters:
l- an int.
-
toString
-