sbrt.kernel.math.stat.proc
Class MwUAnalysis<V>

java.lang.Object
  extended by sbrt.kernel.math.stat.proc.MwUAnalysis<V>
Type Parameters:
V - the variable type.
All Implemented Interfaces:
KernelProcess<MannWhitneyResults>

public class MwUAnalysis<V>
extends java.lang.Object
implements KernelProcess<MannWhitneyResults>

This class is used to perform Mann-Whitney U tests.

Author:
This class was written and documented by Jeremiah Wright while in the Wagner lab.

Constructor Summary
MwUAnalysis()
          Constructs a new Mann-Whitney U analysis.
 
Method Summary
 void run(ResultsManager<MannWhitneyResults> resultsManager)
          Computes the Mann-Whitney U statistic of the samples A and B, and adds the results to the provided results manager.
 void setSampleA(java.util.List<? extends java.lang.Number> sampleA)
          Sets sample A to the provided list of numbers.
 void setSampleB(java.util.List<? extends java.lang.Number> sampleB)
          Sets sample B to the provided list of numbers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MwUAnalysis

public MwUAnalysis()
Constructs a new Mann-Whitney U analysis.

Method Detail

setSampleA

public void setSampleA(java.util.List<? extends java.lang.Number> sampleA)
Sets sample A to the provided list of numbers.

Parameters:
sampleA - a list of values.

setSampleB

public void setSampleB(java.util.List<? extends java.lang.Number> sampleB)
Sets sample B to the provided list of numbers.

Parameters:
sampleB - a list of values.

run

public void run(ResultsManager<MannWhitneyResults> resultsManager)
Computes the Mann-Whitney U statistic of the samples A and B, and adds the results to the provided results manager.

Specified by:
run in interface KernelProcess<MannWhitneyResults>
Parameters:
resultsManager - the results manager to which the computed results are to be added.