Create lrCostFunction.m