mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-22 00:54:08 +00:00
in winner, use HUGE_VAL instead of 1e20
This commit is contained in:
parent
1bd49df841
commit
c42fb45fca
@ -124,7 +124,7 @@ int t, lpct, cells;
|
|||||||
double maxdist;
|
double maxdist;
|
||||||
|
|
||||||
neuron& winner(int id) {
|
neuron& winner(int id) {
|
||||||
double bdiff = 1e20;
|
double bdiff = HUGE_VAL;
|
||||||
neuron *bcell = NULL;
|
neuron *bcell = NULL;
|
||||||
for(neuron& n: net) {
|
for(neuron& n: net) {
|
||||||
double diff = vnorm(n.net, data[id].val);
|
double diff = vnorm(n.net, data[id].val);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user