MCPcopy Create free account
hub / github.com/DentonW/DevIL / altersingle

Function altersingle

DevIL/src-IL/src/il_neuquant.cpp:284–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282// ----------------------------------------------------
283
284void altersingle(ILint alpha, ILint i, ILint b, ILint g, ILint r)
285{
286 ILint *n;
287
288 n = network[i]; // alter hit neuron
289 *n -= (alpha*(*n - b)) / initalpha;
290 n++;
291 *n -= (alpha*(*n - g)) / initalpha;
292 n++;
293 *n -= (alpha*(*n - r)) / initalpha;
294 return;
295}
296
297
298// Move adjacent neurons by precomputed alpha*(1-((i-j)^2/[r]^2)) in radpower[|i-j|]

Callers 1

learnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected