Update lrCostFunction.m