public class CohenKappaAgreement extends CodingAgreementMeasure implements IChanceCorrectedAgreement, ICategorySpecificAgreement
study
Constructor and Description |
---|
CohenKappaAgreement(ICodingAnnotationStudy study)
Initializes the instance for the given annotation study.
|
Modifier and Type | Method and Description |
---|---|
double |
calculateCategoryAgreement(Object category)
Calculates the inter-rater agreement for the given category.
|
double |
calculateExpectedAgreement()
Calculates the expected inter-rater agreement that assumes a
different probability distribution for all raters.
|
double |
calculateMaximumAgreement()
Computes the maximum possible value of the kappa coefficient for the
provided study.
|
protected double |
calculateMaximumObservedAgreement() |
calculateObservedAgreement, doCalculateItemAgreement, ensureTwoRaters, warnIfMissingValues
calculateAgreement
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
calculateObservedAgreement
calculateAgreement
public CohenKappaAgreement(ICodingAnnotationStudy study)
public double calculateExpectedAgreement()
calculateExpectedAgreement
in interface IChanceCorrectedAgreement
calculateExpectedAgreement
in class AgreementMeasure
NullPointerException
- if the annotation study is null.ArithmeticException
- if there are no items in the
annotation study.protected double calculateMaximumObservedAgreement()
public double calculateMaximumAgreement()
public double calculateCategoryAgreement(Object category)
ICategorySpecificAgreement
calculateCategoryAgreement
in interface ICategorySpecificAgreement
ICategorySpecificAgreement
Copyright © 2011–2015 Ubiquitous Knowledge Processing (UKP) Lab. All rights reserved.