MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / update

Function update

examples/machine_learning/geneticalgorithm.cpp:19–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17static const float DefaultTopFittest = 0.5;
18
19array update(const array& searchSpace, const array& sampleX,
20 const array& sampleY, const int n) {
21 return searchSpace(sampleY * n + sampleX);
22}
23
24array selectFittest(const array& sampleZ, const int nSamples,
25 const float topFit = DefaultTopFittest) {

Callers 2

reproduceFunction · 0.70
initSamplesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected