Class ContingencyMatrixPrinter

java.lang.Object
org.dkpro.statistics.agreement.visualization.ContingencyMatrixPrinter

public class ContingencyMatrixPrinter
extends java.lang.Object
Plain-text visualization for a contingency matrix as defined by Krippendorff (1980: p. 133). That is, a table showing the frequencies of each combination of categories used by two raters. A contigency table is only defined for coding studies with exactly two raters. For the example by Krippendorff (1980: p. 133), the implementation displays:
     
     0   1   Σ
 0   5   3   8
 1   1   1   2
 Σ   6   4  10
 

References:
  • Krippendorff, K.: Content Analysis: An Introduction to Its Methodology. Beverly Hills, CA: Sage Publications, 1980.
Author:
Christian M. Meyer
See Also:
ICodingAnnotationStudy
  • Constructor Summary

    Constructors 
    Constructor Description
    ContingencyMatrixPrinter()  
  • Method Summary

    Modifier and Type Method Description
    void print​(java.io.PrintStream out, ICodingAnnotationStudy study)
    Print the contingency matrix for the given coding study.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • print

      public void print​(java.io.PrintStream out, ICodingAnnotationStudy study)
      Print the contingency matrix for the given coding study.
      Throws:
      java.lang.IllegalArgumentException - if the given study has more than two raters.