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, warnIfMissingValuescalculateAgreementclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcalculateObservedAgreementcalculateAgreementpublic CohenKappaAgreement(ICodingAnnotationStudy study)
public double calculateExpectedAgreement()
calculateExpectedAgreement in interface IChanceCorrectedAgreementcalculateExpectedAgreement in class AgreementMeasureNullPointerException - 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)
ICategorySpecificAgreementcalculateCategoryAgreement in interface ICategorySpecificAgreementICategorySpecificAgreementCopyright © 2011–2015 Ubiquitous Knowledge Processing (UKP) Lab. All rights reserved.