gridSearchOnM
perform a grid search on M
Declaration
params = gridSearchOnM(mSpline,functionOfSpline,options)
Parameters
mSpline
a MaternSpline instancefunctionOfSpline
a function_handle that takes an MaternSpline and returns a scalarminM
(optional) minimum value of M to start searchmaxM
(optional) maximum value of M to start searchnGrid
(optional) number of values of M 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 M and evaluating the function functionOfSpline. The parameters structure returned includes all the evaluated points.
This function can call another parameter search function at each M. For example, you can search across values of lambda, at each M, by calling.
params = MaternSpline.gridSearchOnM(spline,rms,search=@(s,f) MaternSpline.gridSearchOnLambda(s,f));