stat
Class Stat
java.lang.Object
stat.Stat
- All Implemented Interfaces:
- java.lang.Runnable
- Direct Known Subclasses:
- CenterCenterDistanceStat, CrossCorrStat, DumpStat, DumpSuccessArrayStat, DumpValueFieldsStat, FilterParamsStat, ParamTendenciesStat, SummaryStat, ValueFieldHistogramStat
- public class Stat
- extends java.lang.Object
- implements java.lang.Runnable
Stat is the base class for statistical output classes from GeneNet.
Override this class to implement a particular statistic. The only
function you really need to override is the run method. paramSets
will be set to the currently loaded Cam file. Each stat should check
to make sure this is not null before starting to do anything.
Calling paramSets.goToBeginning() will get the first ParameterSet
in that cam (which meets all the criteria currently set for the cam).
After that, use calls to paramSets.getNextSet() to get subsequent sets.
When either of these return null, you're done.
Note - To add a new stat into the program, all you need to do is
add its name, minus the Stat at the end, into the Statistics menu
set up in the CamGraph object.
Note - because of how CamGraph figures out statistic names, all
statistics objects must end in Stat, as in DumpStat or AveragesStat.
Constructor Summary |
Stat()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Stat
public Stat()
init
public void init(ParameterSetArray psa)
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
calculateStat
public void calculateStat()
setOutputFile
public void setOutputFile(java.lang.String filename)
throws java.io.IOException
- Throws:
java.io.IOException