private LocationResult PredictPosition()
 {
     // Amíg a pozíciót számoljuk, ne lehessen megváltoztatni az average értékeket!
     lock (nearbyTags)
     {
         CommonPointStrategy cps        = new ClosestPointsStrategy(); //InspectAllPointsStrategy ez mégsem jó
         CalculatorStrategy  calculator = new AverageClosestDistanceLocationCalculator(cps);
         LocationResult      location   = calculator.CalculateLocation(nearbyTags, null);
         return(location);
     }
 }
 private void InitSimulator()
 {
     //distanceMeasureHelper = DistanceMeasureHelper.GetInstance;
     distcalc = new PolyRegressionModelDistanceCalculator();
     tags = new List<BluetoothTagDisplay>();
     nearbyTags = new List<NearbyBluetoothTag>();
     realDev = new RealDevice(backgr);
     simDev = new SimulatedDevice(backgr);
     CommonPointStrategy inspect_two_point_strategy = new ClosestPointsStrategy();
     calculator_strategy = new ClosestDistanceLocationCalculator(inspect_two_point_strategy);
     //closestdistance_strategy = new AverageLocationCalculator();   // EZ A RÉGI VERZIÓ
 }
        private void InitSimulator()
        {
            //distanceMeasureHelper = DistanceMeasureHelper.GetInstance;
            distcalc   = new PolyRegressionModelDistanceCalculator();
            tags       = new List <BluetoothTagDisplay>();
            nearbyTags = new List <NearbyBluetoothTag>();
            realDev    = new RealDevice(backgr);
            simDev     = new SimulatedDevice(backgr);
            CommonPointStrategy inspect_two_point_strategy = new ClosestPointsStrategy();

            calculator_strategy = new ClosestDistanceLocationCalculator(inspect_two_point_strategy);
            //closestdistance_strategy = new AverageLocationCalculator();   // EZ A RÉGI VERZIÓ
        }
 private LocationResult PredictPosition()
 {
     // Amíg a pozíciót számoljuk, ne lehessen megváltoztatni az average értékeket!
     lock (nearbyTags)
     {
         CommonPointStrategy cps = new ClosestPointsStrategy();  //InspectAllPointsStrategy ez mégsem jó
         CalculatorStrategy calculator = new AverageClosestDistanceLocationCalculator(cps);
         LocationResult location = calculator.CalculateLocation(nearbyTags, null);
         return location;
     }
 }