add sampleWeight to approx_sum and approx_count in terminal