  We consider finite point subsets (distributions) in compact metric spaces.
Non-trivial bounds for sums of distances between points of distributions and
for discrepancies of distributions in metric balls are given in the case of
general rectifiable metric spaces.
  We generalize Stolarsky's invariance principle to distance-invariant spaces,
and for arbitrary metric spaces we prove a probabilistic invariance principle.
  Furthermore, we construct partitions of general rectifiable compact metric
spaces into subsets of equal measure with minimum average diameter.
