edu.jhu.ece.iacl.algorithms.manual_label.staple
Class STAPLEgeneral
java.lang.Object
edu.jhu.ece.iacl.jist.pipeline.AbstractCalculation
edu.jhu.ece.iacl.algorithms.manual_label.staple.STAPLEgeneral
public class STAPLEgeneral
- extends AbstractCalculation
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.AbstractCalculation |
add, addTotalUnits, decrementCompletedUnits, decrementCompletedUnits, getCompletedUnits, getCurrentLabel, getCurrentProgress, getLabel, getPerformance, getProgress, getTotalUnits, incrementCompletedUnits, incrementCompletedUnits, isCompleted, markCompleted, reset, setCompletedUnits, setCompletedUnits, setLabel, setMonitor, setTotalUnits |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pl
protected PerformanceLevel pl
priors
protected java.util.ArrayList<java.lang.Float> priors
labels
protected java.util.ArrayList<java.lang.Number> labels
convergesum
protected double convergesum
normtrace
protected float normtrace
maxiters
protected int maxiters
offset
protected int offset
dir
protected java.lang.String dir
eps
protected double eps
beta
protected float beta
sigma
protected float sigma
mrfiters
protected int mrfiters
init
protected java.lang.String init
mrfMethod
protected java.lang.String mrfMethod
STAPLEgeneral
public STAPLEgeneral()
STAPLEgeneral
public STAPLEgeneral(java.util.ArrayList<double[][]> data)
STAPLEgeneral
public STAPLEgeneral(java.util.ArrayList<double[][]> data,
int offset)
setInit
public void setInit(java.lang.String init)
setmaxIters
public void setmaxIters(int max)
setBeta
public void setBeta(float beta)
setSigma
public void setSigma(float sigma)
setEps
public void setEps(double eps)
setSurface
public void setSurface(EmbeddedSurface surf)
setData
public void setData(java.util.ArrayList<double[][]> data)
setDir
public void setDir(java.lang.String dir)
getLabels
public java.util.ArrayList<java.lang.Number> getLabels()
verifySizes
public boolean verifySizes()
findLabels
public void findLabels()
initialize
public void initialize()
Estep
public void Estep()
mrfICM
public void mrfICM(int iters)
- Attempt to solve the MRF using Iterated Conditional Modes
- Parameters:
iters
- Max numer of iterations allowed in the solving the MRF
deepCloneTruth
public java.util.ArrayList<double[][]> deepCloneTruth()
mrfRL
public void mrfRL(int iters)
- Attempt to solve the MRF using a Relaxation Labeling technique
- Parameters:
iters
- Max numer of iterations allowed in the solving the MRF
Mstep
public void Mstep()
getPriorProb
public void getPriorProb()
iterate
public void iterate()
printPerformanceLevels
public void printPerformanceLevels()
getPerformanceLevels
public java.lang.String getPerformanceLevels()
getTruth
public java.util.ArrayList<double[][]> getTruth()
getPeformanceLevel
public PerformanceLevel getPeformanceLevel()
getIndex
public int getIndex(java.util.ArrayList<java.lang.Number> l,
java.lang.Number n)
combineRaterLabels
public double[][] combineRaterLabels(double[][] raterin)
combineAllRaterLabs
public void combineAllRaterLabs()
getHardSeg
public double[][] getHardSeg()