Weighted particle method