Skip to contents

A step of the cgnonl_native implementation. Called by cgnonl_line_search_fr. See the file header for the source the module follows.

Usage

cgnonl_cubic_interpolate(ta, fa, da, tb, fb, db)

Arguments

ta

Numeric; passed to max.

fa

Numeric; combined arithmetically in the body.

da

Numeric; combined arithmetically in the body.

tb

Numeric; passed to max.

fb

Numeric; combined arithmetically in the body.

db

Numeric; combined arithmetically in the body.

Value

The value of t, as built in the body.

Examples

cgnonl_cubic_interpolate(ta = 0, fa = 1, da = -1, tb = 1, fb = 0.5, db = 0.5)
#> [1] 0.8164966