minimizeOnParameters
minimize a penalty function by performing a search a defined set of parameter values
Declaration
error = minimizeOnParameters(params,functionOfSpline)
Parameters
splinePenalty
function handle that takes a MaternSpline as an argument and turns a scalar value.params
structure with fields (K,M,lambda,maternT,maternAlpha)
Returns
error
current value of the splinePenalty function