gridSearchOnM

perform a grid search on M


Declaration

 params = gridSearchOnM(mSpline,functionOfSpline,options)

Parameters

  • mSpline a MaternSpline instance
  • functionOfSpline a function_handle that takes an MaternSpline and returns a scalar
  • minM (optional) minimum value of M to start search
  • maxM (optional) maximum value of M to start search
  • nGrid (optional) number of values of M to consider
  • search (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));