C# Класс Accord.Statistics.Testing.KappaTest

Наследование: Accord.Statistics.Testing.ZTest
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AsymptoticKappaVariance ( GeneralConfusionMatrix matrix ) : double

Computes the asymptotic variance for Fleiss's Kappa variance using the formulae by (Fleiss et al, 1969) when the underlying Kappa is assumed different from zero.

AsymptoticKappaVariance ( GeneralConfusionMatrix matrix, double &stdDev, bool nullHypothesis = false ) : double

Computes the asymptotic variance for Fleiss's Kappa variance using the formulae by (Fleiss et al, 1969). If nullHypothesis is set to true, the method will return the variance under the null hypothesis.

AsymptoticKappaVariance ( WeightedConfusionMatrix matrix, double &stdDev, bool nullHypothesis = false ) : double

Computes the asymptotic variance for Fleiss's Kappa variance using the formulae by (Fleiss et al, 1969). If nullHypothesis is set to true, the method will return the variance under the null hypothesis.

DeltaMethodKappaVariance ( GeneralConfusionMatrix matrix ) : double

Compute Cohen's Kappa variance using the large sample approximation given by Congalton, which is common in the remote sensing literature.

DeltaMethodKappaVariance ( GeneralConfusionMatrix matrix, double &stdDev ) : double

Compute Cohen's Kappa variance using the large sample approximation given by Congalton, which is common in the remote sensing literature.

KappaTest ( GeneralConfusionMatrix matrix, OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsGreaterThanHypothesis ) : System

Creates a new Kappa test.

KappaTest ( GeneralConfusionMatrix matrix, double hypothesizedKappa, OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsDifferentFromHypothesis ) : System

Creates a new Kappa test.

KappaTest ( WeightedConfusionMatrix matrix, double hypothesizedWeightedKappa, OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsDifferentFromHypothesis ) : System

Creates a new Kappa test.

KappaTest ( double sampleKappa, double standardError, OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsGreaterThanHypothesis ) : System

Creates a new Kappa test.

KappaTest ( double sampleKappa, double standardError, double hypothesizedKappa, OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsDifferentFromHypothesis ) : System

Creates a new Kappa test.

Приватные методы

Метод Описание
square ( double x ) : double

Описание методов

AsymptoticKappaVariance() публичный статический метод

Computes the asymptotic variance for Fleiss's Kappa variance using the formulae by (Fleiss et al, 1969) when the underlying Kappa is assumed different from zero.
public static AsymptoticKappaVariance ( GeneralConfusionMatrix matrix ) : double
matrix Accord.Statistics.Analysis.GeneralConfusionMatrix A representing the ratings.
Результат double

AsymptoticKappaVariance() публичный статический метод

Computes the asymptotic variance for Fleiss's Kappa variance using the formulae by (Fleiss et al, 1969). If nullHypothesis is set to true, the method will return the variance under the null hypothesis.
public static AsymptoticKappaVariance ( GeneralConfusionMatrix matrix, double &stdDev, bool nullHypothesis = false ) : double
matrix Accord.Statistics.Analysis.GeneralConfusionMatrix A representing the ratings.
stdDev double Kappa's standard deviation.
nullHypothesis bool True to compute Kappa's variance when the null hypothesis /// is true (i.e. that the underlying kappa is zer). False otherwise. Default is false.
Результат double

AsymptoticKappaVariance() публичный статический метод

Computes the asymptotic variance for Fleiss's Kappa variance using the formulae by (Fleiss et al, 1969). If nullHypothesis is set to true, the method will return the variance under the null hypothesis.
public static AsymptoticKappaVariance ( WeightedConfusionMatrix matrix, double &stdDev, bool nullHypothesis = false ) : double
matrix Accord.Statistics.Analysis.WeightedConfusionMatrix A representing the ratings.
stdDev double Kappa's standard deviation.
nullHypothesis bool True to compute Kappa's variance when the null hypothesis /// is true (i.e. that the underlying kappa is zer). False otherwise. Default is false.
Результат double

DeltaMethodKappaVariance() публичный статический метод

Compute Cohen's Kappa variance using the large sample approximation given by Congalton, which is common in the remote sensing literature.
public static DeltaMethodKappaVariance ( GeneralConfusionMatrix matrix ) : double
matrix Accord.Statistics.Analysis.GeneralConfusionMatrix A representing the ratings.
Результат double

DeltaMethodKappaVariance() публичный статический метод

Compute Cohen's Kappa variance using the large sample approximation given by Congalton, which is common in the remote sensing literature.
public static DeltaMethodKappaVariance ( GeneralConfusionMatrix matrix, double &stdDev ) : double
matrix Accord.Statistics.Analysis.GeneralConfusionMatrix A representing the ratings.
stdDev double Kappa's standard deviation.
Результат double

KappaTest() публичный метод

Creates a new Kappa test.
public KappaTest ( GeneralConfusionMatrix matrix, OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsGreaterThanHypothesis ) : System
matrix Accord.Statistics.Analysis.GeneralConfusionMatrix The contingency table to test.
alternate OneSampleHypothesis The alternative hypothesis (research hypothesis) to test. If the /// hypothesized kappa is left unspecified, a one-tailed test will be used. Otherwise, the /// default is to use a two-sided test.
Результат System

KappaTest() публичный метод

Creates a new Kappa test.
public KappaTest ( GeneralConfusionMatrix matrix, double hypothesizedKappa, OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsDifferentFromHypothesis ) : System
matrix Accord.Statistics.Analysis.GeneralConfusionMatrix The contingency table to test.
hypothesizedKappa double The hypothesized value for the Kappa statistic. If the test /// is being used to assert independency between two raters (i.e. testing the null hypothesis /// that the underlying Kappa is zero), then the /// standard error will be computed with the null hypothesis parameter set to true.
alternate OneSampleHypothesis The alternative hypothesis (research hypothesis) to test. If the /// hypothesized kappa is left unspecified, a one-tailed test will be used. Otherwise, the /// default is to use a two-sided test.
Результат System

KappaTest() публичный метод

Creates a new Kappa test.
public KappaTest ( WeightedConfusionMatrix matrix, double hypothesizedWeightedKappa, OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsDifferentFromHypothesis ) : System
matrix Accord.Statistics.Analysis.WeightedConfusionMatrix The contingency table to test.
hypothesizedWeightedKappa double The hypothesized value for the Kappa statistic. If the test /// is being used to assert independency between two raters (i.e. testing the null hypothesis /// that the underlying Kappa is zero), then the /// standard error will be computed with the null hypothesis parameter set to true.
alternate OneSampleHypothesis The alternative hypothesis (research hypothesis) to test. If the /// hypothesized kappa is left unspecified, a one-tailed test will be used. Otherwise, the /// default is to use a two-sided test.
Результат System

KappaTest() публичный метод

Creates a new Kappa test.
public KappaTest ( double sampleKappa, double standardError, OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsGreaterThanHypothesis ) : System
sampleKappa double The estimated Kappa statistic.
standardError double The standard error of the kappa statistic. If the test is /// being used to assert independency between two raters (i.e. testing the null hypothesis /// that the underlying Kappa is zero), then the /// standard error should be computed with the null hypothesis parameter set to true.
alternate OneSampleHypothesis The alternative hypothesis (research hypothesis) to test. If the /// hypothesized kappa is left unspecified, a one-tailed test will be used. Otherwise, the /// default is to use a two-sided test.
Результат System

KappaTest() публичный метод

Creates a new Kappa test.
public KappaTest ( double sampleKappa, double standardError, double hypothesizedKappa, OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsDifferentFromHypothesis ) : System
sampleKappa double The estimated Kappa statistic.
standardError double The standard error of the kappa statistic. If the test is /// being used to assert independency between two raters (i.e. testing the null hypothesis /// that the underlying Kappa is zero), then the /// standard error should be computed with the null hypothesis parameter set to true.
hypothesizedKappa double The hypothesized value for the Kappa statistic.
alternate OneSampleHypothesis The alternative hypothesis (research hypothesis) to test. If the /// hypothesized kappa is left unspecified, a one-tailed test will be used. Otherwise, the /// default is to use a two-sided test.
Результат System