예제 #1
0
        protected override void EndProcessing()
        {
            var hypo = TestingHelper.GetOneSampleHypothesis(Alternate);

            var test = new SignTest(_data.ToArray(), HypothesizedMedian, hypo)
            {
                Size = Size
            };

            WriteObject(test);
        }
예제 #2
0
        protected override void EndProcessing()
        {
            var hypo = TestingHelper.GetOneSampleHypothesis(Alternate);

            var test = new BinomialTest(SuccesCount, TrialCount, Probability, hypo)
            {
                Size = Size
            };

            WriteObject(test);
        }
예제 #3
0
        protected override void EndProcessing()
        {
            var hypo = TestingHelper.GetOneSampleHypothesis(Alternate);

            var mat  = new ConfusionMatrix(_data.ToIntMatrix());
            var test = new FisherExactTest(mat, hypo)
            {
                Size = Size
            };

            WriteObject(test);
        }
예제 #4
0
        protected override void EndProcessing()
        {
            var hypo = TestingHelper.GetOneSampleHypothesis(Alternate);

            var test = new WilcoxonSignedRankTest(
                _data.ToArray(),
                HypothesizedMean,
                hypo,
                Exact ? true : (Nullable <bool>)null,
                !NoAdjustForTies)
            {
                Size = Size
            };

            WriteObject(test);
        }
예제 #5
0
        protected override void EndProcessing()
        {
            var hypo = TestingHelper.GetOneSampleHypothesis(Alternate);

            TTest test = null;

            if (ParameterSetName == "Samples")
            {
                test = new TTest(_data.ToArray(), HypothesizedMean, hypo);
            }
            else if (ParameterSetName == "Mean")
            {
                test = new TTest(Mean, StdDev, Samples, HypothesizedMean, hypo);
            }
            else if (ParameterSetName == "SE")
            {
                test = new TTest(Value, StandardError, (double)DegreesOfFreedom, HypothesizedMean, hypo);
            }

            test.Size = Size;

            WriteObject(test);
        }