org.apache.commons.math3.stat.inference.WilcoxonSignedRankTest Java Examples

The following examples show how to use org.apache.commons.math3.stat.inference.WilcoxonSignedRankTest. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StatisticsUtil.java    From AILibs with GNU Affero General Public License v3.0 2 votes vote down vote up
/**
 * Computes the p-value according to the Wilcoxon signed rank test for related samples A and B.
 *
 * @param sampleA The first sample.
 * @param sampleB The second sample.
 * @return The p-value of the test for the given two samples.
 */
public static double wilcoxonSignedRankSumTestP(final double[] sampleA, final double[] sampleB) {
	return new WilcoxonSignedRankTest().wilcoxonSignedRankTest(sampleA, sampleB, false);
}