java.io.Serializable
Chain
, ClusterBondsNonAdditive
, Full
, Ring
public class ClusterBonds
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field | Description |
---|---|---|
protected int[][] |
bondIndexArray |
|
protected int |
nPermutations |
|
protected int |
nPoints |
|
protected int[][] |
permutations |
|
protected double |
rPermutations |
|
protected boolean |
usePermutations |
Constructor | Description |
---|---|
ClusterBonds(int[][] bondIndexArray,
boolean usePermutations) |
|
ClusterBonds(int n,
int[][][] bonds) |
Constructor for Cluster, with default to not using permutations (this can
be changed after construction if desired).
|
ClusterBonds(int n,
int[][][] bonds,
boolean usePermutations) |
Constructor for Cluster.
|
Modifier and Type | Method | Description |
---|---|---|
int[][] |
getBondIndexArray() |
|
boolean |
isUsePermutations() |
Returns the usePermutations flag.
|
static void |
main(java.lang.String[] args) |
|
int |
nPermutations() |
Number of permutations of (and including) the basic cluster used when
calculating its value for a configuration
|
int |
pointCount() |
|
void |
setUsePermutations(boolean usePermutations) |
Sets the usePermutations flag.
|
java.lang.String |
toString() |
|
double |
value(double[][][] fValues) |
Returns the value of the cluster for the given set of atom pairs at the
given value of beta = 1/kT.
|
protected double |
valueUsingPermutations(double[][][] fValues) |
Returns value obtained by averaging over all unique permutations of the
point indices.
|
protected final int nPoints
protected final int[][] bondIndexArray
protected boolean usePermutations
protected int[][] permutations
protected int nPermutations
protected double rPermutations
public ClusterBonds(int n, int[][][] bonds)
public ClusterBonds(int n, int[][][] bonds, boolean usePermutations)
public ClusterBonds(int[][] bondIndexArray, boolean usePermutations)
public int[][] getBondIndexArray()
public java.lang.String toString()
toString
in class java.lang.Object
public int pointCount()
public double value(double[][][] fValues)
pairs
- PairSet defining current configuration. Does not call reset
for atom pairs, so this must be done before calling the method
(accomplished by invoking pairs.resetPairs() method).beta
- reciprocal temperature, 1/kTprotected double valueUsingPermutations(double[][][] fValues)
fValues
- public boolean isUsePermutations()
public void setUsePermutations(boolean usePermutations)
usePermutations
- The usePermutations to setpublic int nPermutations()
public static void main(java.lang.String[] args)