accumulate


Description:

public int accumulate (double x, double weight)