1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-24 22:23:18 +00:00

rv::som:: spaces

This commit is contained in:
Zeno Rogue 2022-04-21 11:55:34 +02:00
parent 733d5e5e0e
commit e57f69b936
2 changed files with 5 additions and 7 deletions

View File

@ -47,7 +47,7 @@ void init_landscape_det(const vector<cell*>& ac) {
// d.second[id++] = 1;
d.second[delta_id[d.first]] = 1;
}
println(hlog, "initialized for ", currentmap->gamestart(), ", dimensions = ", dimensions);
}
@ -215,7 +215,6 @@ void get_coordinates(kohvec& v, cell *c, cell *c0) {
using namespace euc;
auto& T0 = eu_input.user_axes;
if(sphere) {
columns = MDIM;
alloc(v);

View File

@ -492,9 +492,9 @@ void buildcellcrawler(cell *c, cellcrawler& cr, int dir) {
qty[i]++;
}
}
curtemp[neuronId(*getNeuron(c))] = 1;
ld vmin = 0, vmax = 1;
int iter;
@ -525,9 +525,8 @@ void buildcellcrawler(cell *c, cellcrawler& cr, int dir) {
for(int i=0; i<N; i++)
if(curtemp[i] < vmin) vmin = curtemp[i];
else if(curtemp[i] > vmax) vmax = curtemp[i];
// if(iter % 50 == 0) println(hlog, "iter=", iter, " vmin=", vmin, " vmax=", vmax, " pairs=", isize(pairs));
}
,,
if(!dispersion_count) {
if(!dispersion_long) dispersion_count = isize(d);
DEBB(DF_LOG, ("Dispersion count = ", isize(d), " celldist = ", celldist(c)));
@ -665,7 +664,7 @@ void step() {
neuron& n = winner(id);
whowon.resize(samples);
whowon[id] = &n;
/*
for(neuron& n2: net) {
int d = celldistance(n.where, n2.where);