edu.jhu.ece.iacl.algorithms.manual_label.staple
Class PerformanceLevel

java.lang.Object
  extended by edu.jhu.ece.iacl.algorithms.manual_label.staple.PerformanceLevel

public class PerformanceLevel
extends java.lang.Object

Author:
John Bogovic

Field Summary
protected  double[][][] dpl
           
protected  float[][][] pl
           
 
Constructor Summary
PerformanceLevel()
           
PerformanceLevel(int numlabels, int numraters)
           
PerformanceLevel(int numlabels, int numraters, boolean isdouble)
           
 
Method Summary
 void clear()
           
 void clearD()
           
 void clearF()
           
 PerformanceLevel clonePL()
           
 void divideByTots(int col, double tot)
           
 void divideByTots(int col, float tot)
           
 float get(int i, int j, int k)
           
 double getD(int i, int j, int k)
           
 float[][][] getPerformance()
           
 double[][][] getPerformanceD()
           
 void initialize(double init)
           
 void initialize(float init)
          Initialize all performance levels the the same value.
 void initialize2(double init)
           
 void initialize2(float init)
           
 float normalizedTrace()
          Compute normalized trace- The sum of the traces of each rater's confusion matrix normalized by the number of labels and the number of raters
 void set(int i, int j, int k, double f)
           
 void set(int i, int j, int k, float f)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pl

protected float[][][] pl

dpl

protected double[][][] dpl
Constructor Detail

PerformanceLevel

public PerformanceLevel()

PerformanceLevel

public PerformanceLevel(int numlabels,
                        int numraters)

PerformanceLevel

public PerformanceLevel(int numlabels,
                        int numraters,
                        boolean isdouble)
Method Detail

getPerformance

public float[][][] getPerformance()

getPerformanceD

public double[][][] getPerformanceD()

get

public float get(int i,
                 int j,
                 int k)

getD

public double getD(int i,
                   int j,
                   int k)

set

public void set(int i,
                int j,
                int k,
                float f)

set

public void set(int i,
                int j,
                int k,
                double f)

initialize

public void initialize(float init)
Initialize all performance levels the the same value.

Parameters:
The - value with which to initialize all peformance level values. A number ~=1 (e.g. 0.99999) is suggested.

initialize

public void initialize(double init)

initialize2

public void initialize2(float init)

initialize2

public void initialize2(double init)

clear

public void clear()

clearF

public void clearF()

clearD

public void clearD()

divideByTots

public void divideByTots(int col,
                         float tot)

divideByTots

public void divideByTots(int col,
                         double tot)

normalizedTrace

public float normalizedTrace()
Compute normalized trace- The sum of the traces of each rater's confusion matrix normalized by the number of labels and the number of raters

Returns:
Normalized trace

clonePL

public PerformanceLevel clonePL()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object