IAction
public class MeterVirialEBinMultiThreaded extends java.lang.Object implements IAction
Modifier and Type | Class | Description |
---|---|---|
static class |
MeterVirialEBinMultiThreaded.MyData |
|
static class |
MeterVirialEBinMultiThreaded.MyDataCov |
Modifier and Type | Field | Description |
---|---|---|
protected java.util.Map<IntSet,MeterVirialEBinMultiThreaded.MyData> |
allMyData |
|
protected BoxCluster |
box |
|
protected boolean |
doCov |
|
protected int |
iThread |
|
protected java.math.MathContext |
mc |
|
protected int |
n |
|
protected long |
nextReweightStep |
|
protected double |
nominalWeight |
|
protected IntSet.PropertyBin |
property |
|
protected static boolean |
quiet |
|
protected IRandom |
random |
|
protected ClusterWheatleyExtendSW |
targetCluster |
|
protected long[] |
totalCount |
|
protected static double |
tRatio |
Constructor | Description |
---|---|
MeterVirialEBinMultiThreaded(ClusterWheatleyExtendSW targetCluster,
IRandom random,
IntSet.PropertyBin prop,
int n) |
Constructor for MeterVirial.
|
MeterVirialEBinMultiThreaded(ClusterWheatleyExtendSW targetCluster,
IRandom random,
IntSet.PropertyBin prop,
long[] totalCount,
java.util.Map<IntSet,MeterVirialEBinMultiThreaded.MyData> allMyData,
int iThread,
boolean doReweight,
int n) |
Modifier and Type | Method | Description |
---|---|---|
void |
actionPerformed() |
Completes the action defined by the class implementing this interface.
|
java.util.Map<IntSet,MeterVirialEBinMultiThreaded.MyData> |
getAllMyData() |
|
BoxCluster |
getBox() |
|
boolean |
getDoCov() |
|
java.math.MathContext |
getMathContext() |
|
ClusterWheatleyExtendSW |
getTargetCluster() |
|
long |
getTotalCount() |
|
protected MeterVirialEBinMultiThreaded.MyData |
makeData(int n) |
|
void |
mergeData(java.util.Map<IntSet,MeterVirialEBinMultiThreaded.MyData> moreData) |
|
void |
readData(java.lang.String[] filenames,
int n) |
|
void |
readData(java.lang.String[] filenames,
int n,
boolean dropCov) |
|
void |
readDataReBin(java.lang.String[] filenames,
int n,
int newNumBins) |
|
static void |
readProcessData(java.lang.String filename,
int n) |
|
void |
readWeights(java.lang.String filename,
int n) |
|
void |
readWriteData(java.lang.String[] readFilenames,
java.lang.String writeFilename,
int n) |
This method reads all input files in parallel and writes lines out to
the new file as the bin data is known to be complete.
|
void |
recomputeWeights() |
|
static void |
recomputeWeights(java.util.Map<IntSet,MeterVirialEBinMultiThreaded.MyData> allMyData,
long totalCount,
boolean doPadVar,
int n) |
This method will read MyData.unscreenedCount and MyData.accumulator
and write to MyData.weight.
|
static void |
recomputeWeights(java.util.Map<IntSet,MeterVirialEBinMultiThreaded.MyData> allMyData,
long totalCount,
int n) |
|
void |
setBox(BoxCluster newBox) |
|
void |
setDoCov(boolean newDoCov) |
|
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,MeterVirialEBinMultiThreaded.MyData> allMyData,
long totalCount,
int n) |
|
void |
writeWeights(java.lang.String filename) |
|
static void |
writeWeights(java.lang.String filename,
java.util.Map<IntSet,MeterVirialEBinMultiThreaded.MyData> allMyData) |
protected final int n
protected final IRandom random
protected final ClusterWheatleyExtendSW targetCluster
protected final java.math.MathContext mc
protected BoxCluster box
protected final java.util.Map<IntSet,MeterVirialEBinMultiThreaded.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 static boolean quiet
protected boolean doCov
public MeterVirialEBinMultiThreaded(ClusterWheatleyExtendSW targetCluster, IRandom random, IntSet.PropertyBin prop, int n)
public MeterVirialEBinMultiThreaded(ClusterWheatleyExtendSW targetCluster, IRandom random, IntSet.PropertyBin prop, long[] totalCount, java.util.Map<IntSet,MeterVirialEBinMultiThreaded.MyData> allMyData, int iThread, boolean doReweight, int n)
public boolean getDoCov()
public void setDoCov(boolean newDoCov)
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,MeterVirialEBinMultiThreaded.MyData> allMyData, long totalCount, int n)
public void writeWeights(java.lang.String filename)
public static void writeWeights(java.lang.String filename, java.util.Map<IntSet,MeterVirialEBinMultiThreaded.MyData> allMyData)
public void mergeData(java.util.Map<IntSet,MeterVirialEBinMultiThreaded.MyData> moreData)
public void readWriteData(java.lang.String[] readFilenames, java.lang.String writeFilename, int n)
public void readData(java.lang.String[] filenames, int n)
public void readData(java.lang.String[] filenames, int n, boolean dropCov)
public static void readProcessData(java.lang.String filename, int n)
public void readDataReBin(java.lang.String[] filenames, int n, int newNumBins)
public void readWeights(java.lang.String filename, int n)
public void recomputeWeights()
public static void recomputeWeights(java.util.Map<IntSet,MeterVirialEBinMultiThreaded.MyData> allMyData, long totalCount, int n)
public static void recomputeWeights(java.util.Map<IntSet,MeterVirialEBinMultiThreaded.MyData> allMyData, long totalCount, boolean doPadVar, int n)
public ClusterWheatleyExtendSW getTargetCluster()
public BoxCluster getBox()
public void setBox(BoxCluster newBox)
public java.util.Map<IntSet,MeterVirialEBinMultiThreaded.MyData> getAllMyData()
public java.math.MathContext getMathContext()
public long getTotalCount()
protected MeterVirialEBinMultiThreaded.MyData makeData(int n)