Ejemplo n.º 1
0
        public void generatePointTest()
        {
            RandomPointGenerator gen = new RandomPointGenerator();
            PlaneProjector proj = new PlaneProjector();

            Point p = gen.generatePoint(3);

            //Assert.IsTrue(proj.isAddingToOne(p));
        }
Ejemplo n.º 2
0
        public bool run(int n, int dimension, double c, Point X)
        {
            generator = new RandomPointGenerator();
            planeProjector = new PlaneProjector();
            pointProcessor = new PointProcessor();

            Console.WriteLine("=================== NEW RUN ===================\n");

            if (X == null)
            {
                X = generator.generatePoint(dimension);
            }

            Console.WriteLine("X= " + X.ToString() + "\n");

            //Preparing background worker;
            prepareObjects();

            Object[] arguments = { n, dimension, c, X };

            bgWorker.RunWorkerAsync(arguments);

            return true;
        }
Ejemplo n.º 3
0
        public bool run(int n, int dimension, double c, Point X)
        {
            generator      = new RandomPointGenerator();
            planeProjector = new PlaneProjector();
            pointProcessor = new PointProcessor();

            Console.WriteLine("=================== NEW RUN ===================\n");

            if (X == null)
            {
                X = generator.generatePoint(dimension);
            }

            Console.WriteLine("X= " + X.ToString() + "\n");

            //Preparing background worker;
            prepareObjects();

            Object[] arguments = { n, dimension, c, X };

            bgWorker.RunWorkerAsync(arguments);

            return(true);
        }
Ejemplo n.º 4
0
 public PlaneProjector()
 {
     generator = new RandomPointGenerator();
 }
Ejemplo n.º 5
0
 public MatrixCalculator()
 {
     generator = new RandomPointGenerator();
 }
Ejemplo n.º 6
0
 public MatrixCalculator()
 {
     generator = new RandomPointGenerator();
 }
Ejemplo n.º 7
0
 public PlaneProjector()
 {
     generator = new RandomPointGenerator();
 }