by
84k 18
0
5
1,305
1
Top 1% !
Popular
Famous
Tagged
Specified
Popularity: 27141st place

Published on:

Architecturex86_64
LanguageC#
Windows VersionWindows7

WPositive: Computes the Wilcoxon's W+ statistic.

Computes the Wilcoxon's W+ statistic.


<remarks>
  The W+ statistic is computed as the
  sum of all positive signed ranks.
</remarks>
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1456189/WPositive--Computes-the-Wilcoxon-s-W--st?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
/// <summary> /// Computes the Wilcoxon's W+ statistic. /// </summary> /// /// <remarks> /// The W+ statistic is computed as the /// sum of all positive signed ranks. /// </remarks> /// public static double WPositive(int[] signs, double[] ranks) { double sum = 0; for (int i = 0; i < signs.Length; i++) if (signs[i] > 0) sum += ranks[i]; return sum; }
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus