IAction
public class MeterVirialBDBinMultiThreaded extends java.lang.Object implements IAction
Modifier and Type | Class | Description |
---|---|---|
static class |
MeterVirialBDBinMultiThreaded.MyData |
Modifier and Type | Field | Description |
---|---|---|
protected java.util.Map<IntSet,MeterVirialBDBinMultiThreaded.MyData> |
allMyData |
|
protected static java.math.BigDecimal |
BDZERO |
|
protected BoxCluster |
box |
|
protected boolean |
excludeBogusConfigs |
|
protected int |
iThread |
|
protected java.math.MathContext |
mc |
|
protected long |
nextReweightStep |
|
protected double |
nominalWeight |
|
protected IntSet.PropertyBin |
property |
|
protected static boolean |
quiet |
|
protected IRandom |
random |
|
protected ClusterWheatley |
targetCluster |
|
protected long[] |
totalCount |
|
protected static double |
tRatio |
Constructor | Description |
---|---|
MeterVirialBDBinMultiThreaded(ClusterWheatley targetCluster,
IRandom random,
IntSet.PropertyBin prop) |
Constructor for MeterVirial.
|
MeterVirialBDBinMultiThreaded(ClusterWheatley targetCluster,
IRandom random,
IntSet.PropertyBin prop,
long[] totalCount,
java.util.Map<IntSet,MeterVirialBDBinMultiThreaded.MyData> allMyData,
int iThread,
boolean doReweight) |
Modifier and Type | Method | Description |
---|---|---|
void |
actionPerformed() |
Completes the action defined by the class implementing this interface.
|
java.util.Map<IntSet,MeterVirialBDBinMultiThreaded.MyData> |
getAllMyData() |
|
BoxCluster |
getBox() |
|
java.math.MathContext |
getMathContext() |
|
ClusterWheatley |
getTargetCluster() |
|
long |
getTotalCount() |
|
void |
mergeData(java.util.Map<IntSet,MeterVirialBDBinMultiThreaded.MyData> moreData) |
|
void |
readData(java.lang.String[] filenames) |
|
void |
readWeights(java.lang.String filename) |
|
void |
recomputeWeights() |
|
static void |
recomputeWeights(java.util.Map<IntSet,MeterVirialBDBinMultiThreaded.MyData> allMyData,
long totalCount) |
|
static void |
recomputeWeights(java.util.Map<IntSet,MeterVirialBDBinMultiThreaded.MyData> allMyData,
long totalCount,
boolean doPadVar) |
This method will read MyData.unscreenedCount and MyData.accumulator
and write to MyData.weight.
|
void |
setBox(BoxCluster newBox) |
|
void |
setDoExcludeBogusConfigs(boolean newDoExclude) |
|
static void |
setQuiet(boolean newQuiet) |
|
static void |
setTRatio(double newTRatio) |
|
void |
setWeight(double newWeight) |
|
void |
writeData(java.lang.String filename) |
|
static void |
writeData(java.lang.String filename,
java.util.Map<IntSet,MeterVirialBDBinMultiThreaded.MyData> allMyData,
long totalCount) |
|
void |
writeWeights(java.lang.String filename) |
|
static void |
writeWeights(java.lang.String filename,
java.util.Map<IntSet,MeterVirialBDBinMultiThreaded.MyData> allMyData) |
protected final IRandom random
protected final ClusterWheatley targetCluster
protected final java.math.MathContext mc
protected BoxCluster box
protected final java.util.Map<IntSet,MeterVirialBDBinMultiThreaded.MyData> allMyData
protected static double tRatio
protected static final java.math.BigDecimal BDZERO
protected long nextReweightStep
protected final long[] totalCount
protected final IntSet.PropertyBin property
protected double nominalWeight
protected int iThread
protected boolean excludeBogusConfigs
protected static boolean quiet
public MeterVirialBDBinMultiThreaded(ClusterWheatley targetCluster, IRandom random, IntSet.PropertyBin prop)
public MeterVirialBDBinMultiThreaded(ClusterWheatley targetCluster, IRandom random, IntSet.PropertyBin prop, long[] totalCount, java.util.Map<IntSet,MeterVirialBDBinMultiThreaded.MyData> allMyData, int iThread, boolean doReweight)
public void setDoExcludeBogusConfigs(boolean newDoExclude)
public void setWeight(double newWeight)
public static void setTRatio(double newTRatio)
public static void setQuiet(boolean newQuiet)
public void actionPerformed()
IAction
actionPerformed
in interface IAction
public void writeData(java.lang.String filename)
public static void writeData(java.lang.String filename, java.util.Map<IntSet,MeterVirialBDBinMultiThreaded.MyData> allMyData, long totalCount)
public void writeWeights(java.lang.String filename)
public static void writeWeights(java.lang.String filename, java.util.Map<IntSet,MeterVirialBDBinMultiThreaded.MyData> allMyData)
public void mergeData(java.util.Map<IntSet,MeterVirialBDBinMultiThreaded.MyData> moreData)
public void readData(java.lang.String[] filenames)
public void readWeights(java.lang.String filename)
public void recomputeWeights()
public static void recomputeWeights(java.util.Map<IntSet,MeterVirialBDBinMultiThreaded.MyData> allMyData, long totalCount)
public static void recomputeWeights(java.util.Map<IntSet,MeterVirialBDBinMultiThreaded.MyData> allMyData, long totalCount, boolean doPadVar)
public ClusterWheatley getTargetCluster()
public BoxCluster getBox()
public void setBox(BoxCluster newBox)
public java.util.Map<IntSet,MeterVirialBDBinMultiThreaded.MyData> getAllMyData()
public java.math.MathContext getMathContext()
public long getTotalCount()