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

Function single_variable_function

dlib/test/optimization.cpp:146–150  ·  view source on GitHub ↗

a simple function with a minimum at zero

Source from the content-addressed store, hash-verified

144
145// a simple function with a minimum at zero
146 double single_variable_function ( double x)
147 {
148 ++total_count;
149 return 3*x*x + 5;
150 }
151
152// ----------------------------------------------------------------------------------------
153// ----------------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected