Function which calculates loess weights and regression values like in the example on http://www.itl.nist.gov