MCPcopy Create free account
hub / github.com/GeoDaCenter/geoda / Copy

Method Copy

Algorithms/azp.cpp:345–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345void RegionMaker::Copy(RegionMaker& rm)
346{
347 this->init_regions = rm.init_regions;
348 this->unassignedAreas = rm.unassignedAreas;
349 this->assignedAreas = rm.assignedAreas;
350 this->areaNoNeighbor = rm.areaNoNeighbor;
351 this->area2Region = rm.area2Region;
352 this->region2Area = rm.region2Area;
353 this->potentialRegions4Area = rm.potentialRegions4Area;
354 this->candidateInfo = rm.candidateInfo;
355 this->objInfo = rm.objInfo;
356 if (objective_function) {
357 delete objective_function;
358 }
359 this->objective_function = new ObjectiveFunction(n, m, data, w, region2Area);
360}
361
362void RegionMaker::InitFromRegion(std::vector<int>& init_regions)
363{

Callers 3

AZPMethod · 0.45
AZPSAMethod · 0.45
AZPTabuMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected