Пример #1
0
        public static void TestHarness_ComparisonWithDrezner_Subtest(double y, double correlation, MultiChart2D chart)
        {
            Series series_genz    = new Series("Genz", ChartType.Line);
            Series series_drezner = new Series("Drezner", ChartType.Line);

            for (double i = -10.0; i <= 10.0; i += 0.2)
            {
                series_drezner.addPoint(i, CNorm_2D(i, y, correlation));
                series_genz.addPoint(i, CNorm_2D(i, y, correlation));
            }

            chart.title = String.Format("y={0} correlation={1}", y, correlation);
            chart.addSeries(series_drezner);
            chart.addSeries(series_genz);
        }
Пример #2
0
        public static void TestHarness()
        {
            MersenneTwister mt     = new MersenneTwister();
            Series          series = new Series("Random", ChartType.Point);

            for (int i = 0; i < 1000; ++i)
            {
                series.addPoint(mt.RandomDouble(), mt.RandomDouble());
            }
            MultiChart2D chart = new MultiChart2D();

            chart.addSeries(series);
            SingleControlForm form = new SingleControlForm();

            form.setControl(chart);
            form.Show();
        }
Пример #3
0
        public static void TestHarness()
        {
            const int DIM = 80;

            Series       series = new Series("1,2", ChartType.Point);
            MultiChart2D chart  = new MultiChart2D();

            Vector rands = new Vector(DIM);
            Sobol  sobol = new Sobol(DIM);

            for (int i = 0; i < 256; ++i)
            {
                sobol.nextRandomVector(rands);
                series.addPoint(rands[13], rands[50]);
            }

            chart.addSeries(series);
            SingleControlForm form = new SingleControlForm("Vol title");

            form.setControl(chart);
            form.ShowDialog();
        }