gridSearchOnMaternT
perform a grid search on maternT
Declaration
params = gridSearchOnLambda(mSpline,functionOfSpline,options)
Parameters
mSpline
a MaternSpline instancefunctionOfSpline
a function_handle that takes an MaternSpline and returns a scalarminT
(optional) minimum value of maternT for the searchmaxT
(optional) maximum value of maternT for the searchnGrid
(optional) number of values of maternT to considersearch
(optional) function_handle with two arguments (MaternSpline,functionOfSpline) that returns params struct
Returns
params
structure with fields (K,M,lambda,maternT,maternAlpha,error))
Discussion
Performs a grid search by changing values of maternT and evaluating the function functionOfSpline. The parameters structure returned includes all the evaluated points.
This function can call another parameter search function at each lambda. For example, you can search across values of M, at each lambda, by calling.
params = MaternSpline.gridSearchOnLambda(spline,rms,search=@(s,f) MaternSpline.gridSearchOnM(s,f));