Weighted Means in Stochastic Approximation of Minima