程序包 weka.experiment

类 PairedStats

java.lang.Object
weka.experiment.PairedStats
所有已实现的接口:
RevisionHandler
直接已知子类:
PairedStatsCorrected

public class PairedStats extends Object implements RevisionHandler
A class for storing stats on a paired comparison (t-test and correlation)
版本:
$Revision: 1.10 $
作者:
Len Trigg (trigg@cs.waikato.ac.nz)
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    double
    The correlation coefficient
    double
    The number of data points seen
    double
    The probability of obtaining the observed differences
    int
    A significance indicator: 0 if the differences are not significant > 0 if x significantly greater than y < 0 if x significantly less than y
    The stats associated with the paired differences
    double
    The significance level for comparisons
    The stats associated with the data in column 1
    double
    The sum of the products
    The stats associated with the data in column 2
  • 构造器概要

    构造器
    构造器
    说明
    PairedStats(double sig)
    Creates a new PairedStats object with the supplied significance level.
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    add(double[] value1, double[] value2)
    Adds an array of observed pair of values.
    void
    add(double value1, double value2)
    Add an observed pair of values.
    void
    Calculates the derived statistics (significance etc).
    int
    Gets the degrees of freedom.
    Returns the revision string.
    static void
    main(String[] args)
    Tests the paired stats object from the command line.
    void
    Sets the degrees of freedom (if calibration is required).
    void
    subtract(double[] value1, double[] value2)
    Removes an array of observed pair of values.
    void
    subtract(double value1, double value2)
    Removes an observed pair of values.
    Returns statistics on the paired comparison.

    从类继承的方法 java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 字段详细资料

    • xStats

      public Stats xStats
      The stats associated with the data in column 1
    • yStats

      public Stats yStats
      The stats associated with the data in column 2
    • differencesStats

      public Stats differencesStats
      The stats associated with the paired differences
    • differencesProbability

      public double differencesProbability
      The probability of obtaining the observed differences
    • correlation

      public double correlation
      The correlation coefficient
    • xySum

      public double xySum
      The sum of the products
    • count

      public double count
      The number of data points seen
    • differencesSignificance

      public int differencesSignificance
      A significance indicator: 0 if the differences are not significant > 0 if x significantly greater than y < 0 if x significantly less than y
    • sigLevel

      public double sigLevel
      The significance level for comparisons
  • 构造器详细资料

    • PairedStats

      public PairedStats(double sig)
      Creates a new PairedStats object with the supplied significance level.
      参数:
      sig - the significance level for comparisons
  • 方法详细资料

    • setDegreesOfFreedom

      public void setDegreesOfFreedom(int d)
      Sets the degrees of freedom (if calibration is required).
    • getDegreesOfFreedom

      public int getDegreesOfFreedom()
      Gets the degrees of freedom.
    • add

      public void add(double value1, double value2)
      Add an observed pair of values.
      参数:
      value1 - the value from column 1
      value2 - the value from column 2
    • subtract

      public void subtract(double value1, double value2)
      Removes an observed pair of values.
      参数:
      value1 - the value from column 1
      value2 - the value from column 2
    • add

      public void add(double[] value1, double[] value2)
      Adds an array of observed pair of values.
      参数:
      value1 - the array containing values from column 1
      value2 - the array containing values from column 2
    • subtract

      public void subtract(double[] value1, double[] value2)
      Removes an array of observed pair of values.
      参数:
      value1 - the array containing values from column 1
      value2 - the array containing values from column 2
    • calculateDerived

      public void calculateDerived()
      Calculates the derived statistics (significance etc).
    • toString

      public String toString()
      Returns statistics on the paired comparison.
      覆盖:
      toString 在类中 Object
      返回:
      the t-test statistics as a string
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      返回:
      the revision
    • main

      public static void main(String[] args)
      Tests the paired stats object from the command line. reads line from stdin, expecting two values per line.
      参数:
      args - ignored.