Calculate the weight vector used for computing the weighted average. param q the number weights to compute param u factor indicating how much to have linear vs. flat weights
Calculate the weight vector used for computing the weighted average. param q the number weights to compute param u factor indicating how much to have linear vs. flat weights