# Last edited on 2014-06-15 19:36:17 by stolfilocal
# To be included in {plot_slumber_prices.sh} etc.

# Client must define {refps,refwt,minps,minwt}

fmin(x,y) = (x < y ? x : y)
fmax(x,y) = (x > y ? x : y)
fmin3(x,y,z) = fmin(x, fmin(y, z))
fmax3(x,y,z) = fmax(x, fmax(y, z))

# Converting weight to point size:
wps(w) = fmax(minps, refps*fmax(minwt,w)/refwt)

# Converting volume to point size:
volps(v) = fmax(minps, refps*fmax(minvol,v)/refvol)
