public CentroidDailyAnalysisMethod(ILocalityQuerySetup querySetup)
 {
     this.querySetup = querySetup;
     this.resultsByLocality = new List<LocalityResult>();
     this.allocationResult = new AllocationResult();
     this.allDistances = new List<double>();
 }
 public TravelingSalesmanAnalyser(ILocalityQuerySetup querySetup, ITSPOptions options)
 {
     this.querySetup = querySetup;
     this.options = options;
     this.resultsByLocality = new List<LocalityResult>();
     this.allocationResult = new AllocationResult();
     this.allTourLengths = new List<double>();
 }
        public ResultsContainer()
        {
            home = new List<LocalityResult>();
            gp = new List<LocalityResult>();

            HomeAllocation = new AllocationResult();
            HomeAllocation = new AllocationResult();
        }
Exemplo n.º 4
0
        public ResultsContainer()
        {
            home = new List <LocalityResult>();
            gp   = new List <LocalityResult>();

            HomeAllocation = new AllocationResult();
            HomeAllocation = new AllocationResult();
        }
        private void RecordAllocationResult()
        {
            BasicStatistics stats = new BasicStatistics(this.allDistances);
            var CI = new ConfidenceIntervalStandardNormal(stats);

            this.allocationResult = new AllocationResult()
            {
                Mean = stats.Mean,
                LCI = CI.LowerBound,
                UCI = CI.UpperBound,
                Stats = stats,
            };
        }