signTest - multiple declarations

Function signTest

Sign test for differences between paired values. This is a very robust but very low power test. Alternatives are Alt.less, meaning elements of before are typically less than corresponding elements of after, Alt.greater, meaning elements of before are typically greater than elements of after, and Alt.twoSided, meaning that there is a significant difference in either direction.

TestRes signTest(T, U) (
  T before,
  U after,
  Alt alt = Alt.twoSided
)
if (doubleInput!T && doubleInput!U && is(typeof(before.front < after.front) == bool));

Returns

A TestRes with the proportion of elements of before that were greater than the corresponding element of after, and the P-value against the given alternative.

Function signTest

Similar to the overload, but allows testing for a difference between a range and a fixed value mu.

TestRes signTest(T) (
  T data,
  double mu,
  Alt alt = Alt.twoSided
)
if (doubleInput!T && is(typeof(data.front < mu) == bool));