Package smile.stat

Interface Hypothesis.cor

Enclosing interface:
Hypothesis

public static interface Hypothesis.cor
Correlation test.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static CorTest
    test(double[] x, double[] y)
    Pearson correlation test.
    static CorTest
    test(double[] x, double[] y, String method)
    Correlation test.
  • Method Details

    • test

      static CorTest test(double[] x, double[] y)
      Pearson correlation test.
      Parameters:
      x - the sample values.
      y - the sample values.
      Returns:
      the test results.
    • test

      static CorTest test(double[] x, double[] y, String method)
      Correlation test. Supported methods include "pearson", "kendall", and "spearman".
      Parameters:
      x - the sample values.
      y - the sample values.
      method - supported methods include "pearson", "kendall", and "spearman".
      Returns:
      the test results.