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
Modifier and TypeFieldDescriptionprotected int
Allowed is used for centric reflections.protected int
The bin number of this reflection, which is used for resolution dependent R/Rfree.protected int
The epsilon value of the reflection, which is used for systematic absences.protected int
The h-index of the reflection.protected int
The unique index of this reflection.protected int
The k-index of the reflection.protected int
The l-index of the reflection. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
centric()
Is this reflection centric?int
epsilonc()
epsiloncboolean
double
getAllowedint
getBin()
The bin number of this reflection, which is used for resolution dependent R/Rfree.int
getEpsilonint
getH()
The h-index of the reflection.int
getIndex()
Get the index of this reflection.int
getK()
Get the k-index of the reflection.int
getL()
Get the l-index of the reflection.int
hashCode()
neg()
Negate the reflection.double
quadForm
(double[][] mat) quadFormvoid
setAllowed
(int allowed) setAllowedvoid
setBin
(int bin) Set the bin number of this reflection, which is used for resolution dependent R/Rfree.void
setEpsilon
(int eps) setEpsilonvoid
setH
(int h) Set the h-index of the reflection.void
setIndex
(int index) Set the index of this reflection.void
setK
(int k) Set the k-index of the reflection.void
setL
(int l) Set the l-index of the reflection.boolean
sysAbs()
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
HKL
object.
-
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
-