public class WeightedKappaAgreement extends WeightedAgreement implements IChanceCorrectedDisagreement
IDistanceFunction
instance needs to
be assigned.distanceFunction, study
Constructor and Description |
---|
WeightedKappaAgreement(ICodingAnnotationStudy study,
IDistanceFunction distanceFunction)
Initializes the instance for the given annotation study.
|
Modifier and Type | Method and Description |
---|---|
double |
calculateExpectedDisagreement()
Calculates the expected inter-rater agreement using the defined
distance function to infer the assumed probability distribution.
|
double |
calculateObservedDisagreement()
Calculates the observed inter-rater agreement for the annotation
study that was passed to the class constructor and the currently
assigned distance function.
|
ensureDistanceFunction, getDistanceFunction, setDistanceFunction
calculateAgreement
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
calculateAgreement
public WeightedKappaAgreement(ICodingAnnotationStudy study, IDistanceFunction distanceFunction)
public double calculateObservedDisagreement()
calculateObservedDisagreement
in interface IChanceCorrectedDisagreement
calculateObservedDisagreement
in class DisagreementMeasure
NullPointerException
- if the study is null.ArithmeticException
- if the study does not contain any item or
the number of raters is smaller than 2.public double calculateExpectedDisagreement()
calculateExpectedDisagreement
in interface IChanceCorrectedDisagreement
calculateExpectedDisagreement
in class DisagreementMeasure
NullPointerException
- if the annotation study is null.ArithmeticException
- if there are no items or raters in the
annotation study.Copyright © 2011–2015 Ubiquitous Knowledge Processing (UKP) Lab. All rights reserved.