結果 : average cost function from total cost function