結果 : cost function to average cost function