Difference between revisions of "Cubic interp.m"
(Update function See also links and function index membership) |
(sync with Spinach main f053e432: Parameters block per head header line structure; stray Returns block moved into Outputs; placeholder Outputs line replaced; author link) |
||
| Line 9: | Line 9: | ||
==Parameters== | ==Parameters== | ||
| − | + | end_a - first interpolation boundary in alpha space | |
| − | + | ||
| − | + | end_b - second interpolation boundary in alpha space | |
| − | + | ||
| − | + | alpha_a - first interpolation anchor point | |
| − | + | ||
| − | + | alpha_b - second interpolation anchor point | |
| − | + | ||
| − | + | f_a - function value at alpha_a | |
| − | + | ||
| − | + | dir_der_a - directional derivative at alpha_a | |
| + | |||
| + | f_b - function value at alpha_b | ||
| + | |||
| + | dir_der_b - directional derivative at alpha_b | ||
==Outputs== | ==Outputs== | ||
| − | + | alpha - selected maximiser of the cubic model | |
| + | |||
| + | fx - cubic model value at alpha | ||
==Examples== | ==Examples== | ||
| Line 34: | Line 40: | ||
[[bracketing.m]], [[sectioning.m]], [[alpha_conds.m]], [[fmaxnewton.m]], [[bfgs.m]], [[aux_mat.m]], [[dirdiff.m]], [[drifts.m]], [[ensemble.m]], [[hess_reorder.m]], [[objeval.m]], [[optimcon.m]], [[trapdiff.m]], [[Optimal_control_module]] | [[bracketing.m]], [[sectioning.m]], [[alpha_conds.m]], [[fmaxnewton.m]], [[bfgs.m]], [[aux_mat.m]], [[dirdiff.m]], [[drifts.m]], [[ensemble.m]], [[hess_reorder.m]], [[objeval.m]], [[optimcon.m]], [[trapdiff.m]], [[Optimal_control_module]] | ||
| − | ''Version 2.11, authors: David Goodwin, [[Ilya Kuprov]]'' | + | ''Version 2.11, authors: [[David Goodwin]], [[Ilya Kuprov]]'' |
Latest revision as of 05:41, 30 August 2026
Finds the extremum of a cubic interpolant built from function values and directional derivatives at two points and returns the best point inside the interpolation interval.
Syntax
[alpha,fx]=cubic_interp(end_A,end_B,alpha_A,alpha_B,...
f_A,dir_deriv_A,f_B,dir_deriv_B)
Parameters
end_a - first interpolation boundary in alpha space end_b - second interpolation boundary in alpha space alpha_a - first interpolation anchor point alpha_b - second interpolation anchor point f_a - function value at alpha_a dir_der_a - directional derivative at alpha_a f_b - function value at alpha_b dir_der_b - directional derivative at alpha_b
Outputs
alpha - selected maximiser of the cubic model fx - cubic model value at alpha
Examples
See examples in the Spinach distribution relevant to this function.
Notes
This page was generated from the function header in the Spinach repository.
See also
bracketing.m, sectioning.m, alpha_conds.m, fmaxnewton.m, bfgs.m, aux_mat.m, dirdiff.m, drifts.m, ensemble.m, hess_reorder.m, objeval.m, optimcon.m, trapdiff.m, Optimal_control_module
Version 2.11, authors: David Goodwin, Ilya Kuprov