Exemplo n.º 1
0
        protected override void EndProcessing()
        {
            var hypo = TestingHelper.GetOneSampleHypothesis(Alternate);

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

            WriteObject(test);
        }
Exemplo n.º 2
0
        protected override void EndProcessing()
        {
            var hypo = TestingHelper.GetOneSampleHypothesis(Alternate);

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

            WriteObject(test);
        }
Exemplo n.º 3
0
        protected override void EndProcessing()
        {
            var hypo = TestingHelper.GetKolmogorovSmirnovTestHypothesis(Alternate);

            var test = new KolmogorovSmirnovTest(_data.ToArray(), HypothesizedDistribution, hypo)
            {
                Size = Size
            };

            WriteObject(test);
        }
Exemplo n.º 4
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);
        }
Exemplo n.º 5
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);
        }
Exemplo n.º 6
0
        protected override void EndProcessing()
        {
            var hypo = TestingHelper.GetTwoSampleHypothesis(Alternate);

            TwoSampleSignTest test;

            if (ParameterSetName == "Pipeline")
            {
                test = new TwoSampleSignTest(_data[Sample1Name].ToDoubleArray(), _data[Sample2Name].ToDoubleArray(), hypo);
            }
            else
            {
                test = new TwoSampleSignTest(Sample1, Sample2, hypo);
            }

            test.Size = Size;

            WriteObject(test);
        }
Exemplo n.º 7
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);
        }