結果 : cost classification based on function