parametersWithPenalty
parameter struct with current values
Declaration
params = parametersWithPenalty(splinePenalty)
Parameters
splinePenalty
function handle that takes a MaternSpline as an argument and turns a scalar value.
Returns
params
structure with fields (K,M,lambda,maternT,maternAlpha,error)
Discussion
Creates a new structure containing current values of (K,M,lambda,maternT,maternAlpha) as well as the value computed from splinePenalty.