Shipping costs for Topological and Uniform Spaces - Linear and Nonlinear Functions