MCPcopy Create free account
hub / github.com/davisking/dlib / f

Function f

examples/bsp_ex.cpp:153–156  ·  view source on GitHub ↗

We are going to use the BSP tools to find the minimum of f(x). Note that it's minimizer is at x == 2.0. */

Source from the content-addressed store, hash-verified

151 it's minimizer is at x == 2.0.
152*/
153double f (double x)
154{
155 return std::pow(x-2.0, 2.0);
156}
157
158// ----------------------------------------------------------------------------------------
159

Callers 5

mainFunction · 0.70
bsp_job_other_nodesFunction · 0.70
mainFunction · 0.70
train_detection_networkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected