IAction
public class MeterVirialBinMultiThreaded extends java.lang.Object implements IAction
Modifier and Type | Class | Description |
---|---|---|
static class |
MeterVirialBinMultiThreaded.MyData |
Modifier and Type | Field | Description |
---|---|---|
protected java.util.Map<IntSet,MeterVirialBinMultiThreaded.MyData> |
allMyData |
|
protected BoxCluster |
box |
|
protected boolean |
excludeBogusConfigs |
|
protected int |
iThread |
|
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 |
---|---|
MeterVirialBinMultiThreaded(ClusterWheatley targetCluster,
IRandom random,
IntSet.PropertyBin prop) |
Constructor for MeterVirial.
|
MeterVirialBinMultiThreaded(ClusterWheatley targetCluster,
IRandom random,
IntSet.PropertyBin prop,
long[] totalCount,
java.util.Map<IntSet,MeterVirialBinMultiThreaded.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,MeterVirialBinMultiThreaded.MyData> |
getAllMyData() |
|
BoxCluster |
getBox() |
|
ClusterWheatley |
getTargetCluster() |
|
long |
getTotalCount() |
|
void |
mergeData(java.util.Map<IntSet,MeterVirialBinMultiThreaded.MyData> moreData) |
|
void |
readData(java.lang.String[] filenames) |
|
void |
readWeights(java.lang.String filename) |
|
void |
recomputeWeights() |
|
static void |
recomputeWeights(java.util.Map<IntSet,MeterVirialBinMultiThreaded.MyData> allMyData,
long totalCount) |
|
static void |
recomputeWeights(java.util.Map<IntSet,MeterVirialBinMultiThreaded.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,MeterVirialBinMultiThreaded.MyData> allMyData,
long totalCount) |
|
void |
writeWeights(java.lang.String filename) |
|
static void |
writeWeights(java.lang.String filename,
java.util.Map<IntSet,MeterVirialBinMultiThreaded.MyData> allMyData) |
protected final IRandom random
protected final ClusterWheatley targetCluster
protected BoxCluster box
protected final java.util.Map<IntSet,MeterVirialBinMultiThreaded.MyData> allMyData
protected static double tRatio
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 MeterVirialBinMultiThreaded(ClusterWheatley targetCluster, IRandom random, IntSet.PropertyBin prop)
public MeterVirialBinMultiThreaded(ClusterWheatley targetCluster, IRandom random, IntSet.PropertyBin prop, long[] totalCount, java.util.Map<IntSet,MeterVirialBinMultiThreaded.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,MeterVirialBinMultiThreaded.MyData> allMyData, long totalCount)
public void writeWeights(java.lang.String filename)
public static void writeWeights(java.lang.String filename, java.util.Map<IntSet,MeterVirialBinMultiThreaded.MyData> allMyData)
public void mergeData(java.util.Map<IntSet,MeterVirialBinMultiThreaded.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,MeterVirialBinMultiThreaded.MyData> allMyData, long totalCount)
public static void recomputeWeights(java.util.Map<IntSet,MeterVirialBinMultiThreaded.MyData> allMyData, long totalCount, boolean doPadVar)
public ClusterWheatley getTargetCluster()
public BoxCluster getBox()
public void setBox(BoxCluster newBox)
public java.util.Map<IntSet,MeterVirialBinMultiThreaded.MyData> getAllMyData()
public long getTotalCount()