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

Function chebyquad_start

dlib/test/optimization_test_functions.cpp:122–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 // ----------------------------------------------------------------------------------------
121
122 matrix<double,0,1> chebyquad_start (int n)
123 {
124 int i;
125 matrix<double,0,1> x(n);
126
127 for (i = 1; i <= n; ++i)
128 x(i-1) = double ( i ) / double ( n + 1 );
129
130 return x;
131 }
132
133 // ----------------------------------------------------------------------------------------
134

Callers 2

test_problemsFunction · 0.85
test_with_chebyquadFunction · 0.85

Calls 1

xFunction · 0.85

Tested by

no test coverage detected