Class DisagreementMeasure

java.lang.Object
org.dkpro.statistics.agreement.DisagreementMeasure
All Implemented Interfaces:
IAgreementMeasure
Direct Known Subclasses:
UnitizingAgreementMeasure, WeightedAgreement

public abstract class DisagreementMeasure
extends java.lang.Object
implements IAgreementMeasure
Default implementation of the IAgreementMeasure interface providing computational hooks for calculating the observed and the expected disagreement. The values for observed and expected disagreement are combined using Krippendorff's (1980) 1 - (D_O / D_E) formula (where D_O denotes the observed disagreement and D_E denotes the expected disagreement. See also AgreementMeasure for the analogous definition of a measure based on the observed and expected agreement.

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

    Constructors 
    Constructor Description
    DisagreementMeasure()  
  • Method Summary

    Modifier and Type Method Description
    double calculateAgreement()
    Calculates the inter-rater agreement for the annotation study that was passed to the class constructor and the currently assigned distance function.
    protected double calculateExpectedDisagreement()  
    protected abstract double calculateObservedDisagreement()  

    Methods inherited from class java.lang.Object

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

  • Method Details

    • calculateAgreement

      public double calculateAgreement()
      Calculates the inter-rater agreement for the annotation study that was passed to the class constructor and the currently assigned distance function.
      Specified by:
      calculateAgreement in interface IAgreementMeasure
      Throws:
      java.lang.NullPointerException - if the study is null.
      java.lang.ArithmeticException - if the study does not contain any item or the number of raters is smaller than 2.
    • calculateObservedDisagreement

      protected abstract double calculateObservedDisagreement()
    • calculateExpectedDisagreement

      protected double calculateExpectedDisagreement()