gridSearchOnMaternT

perform a grid search on maternT


Declaration

 params = gridSearchOnLambda(mSpline,functionOfSpline,options)

Parameters

  • mSpline a MaternSpline instance
  • functionOfSpline a function_handle that takes an MaternSpline and returns a scalar
  • minT (optional) minimum value of maternT for the search
  • maxT (optional) maximum value of maternT for the search
  • nGrid (optional) number of values of maternT 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 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));