DVector.balance_by_segments#

DVector.balance_by_segments(other, balancing_zones=None)[source]#

Balance one DVector to another.

This means that in the end the DVectors will match at some level of detail.

Parameters:
  • other (DVector) – The DVector to balance self to. Must have the same segmentation.

  • balancing_zones (ZoningSystem | BalancingZones = None) – The zoning to perform balancing at. If None, rows will be balanced as a whole, conserving the spatial distribution of self, and only scaling up or down rows to match other. The more detailed the zoning system provided is, the closer self’s spatial distribution will be matched to other’s.