appendParametersWithPenalty

append parameter struct with current values


Declaration

 params = appendParametersWithPenalty(params,splinePenalty)

Parameters

  • params structure with fields (K,M,lambda,maternT,maternAlpha,error)
  • 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

Appends an existing parameter structure with current values of (K,M,lambda,maternT,maternAlpha) as well as the value computed from splinePenalty.