mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-28 20:37:40 +00:00
rv::som:: spaces
This commit is contained in:
@@ -47,7 +47,7 @@ void init_landscape_det(const vector<cell*>& ac) {
|
|||||||
// d.second[id++] = 1;
|
// d.second[id++] = 1;
|
||||||
d.second[delta_id[d.first]] = 1;
|
d.second[delta_id[d.first]] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
println(hlog, "initialized for ", currentmap->gamestart(), ", dimensions = ", dimensions);
|
println(hlog, "initialized for ", currentmap->gamestart(), ", dimensions = ", dimensions);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -215,7 +215,6 @@ void get_coordinates(kohvec& v, cell *c, cell *c0) {
|
|||||||
|
|
||||||
using namespace euc;
|
using namespace euc;
|
||||||
auto& T0 = eu_input.user_axes;
|
auto& T0 = eu_input.user_axes;
|
||||||
|
|
||||||
if(sphere) {
|
if(sphere) {
|
||||||
columns = MDIM;
|
columns = MDIM;
|
||||||
alloc(v);
|
alloc(v);
|
||||||
|
|||||||
@@ -492,9 +492,9 @@ void buildcellcrawler(cell *c, cellcrawler& cr, int dir) {
|
|||||||
qty[i]++;
|
qty[i]++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
curtemp[neuronId(*getNeuron(c))] = 1;
|
curtemp[neuronId(*getNeuron(c))] = 1;
|
||||||
|
|
||||||
ld vmin = 0, vmax = 1;
|
ld vmin = 0, vmax = 1;
|
||||||
int iter;
|
int iter;
|
||||||
|
|
||||||
@@ -525,9 +525,8 @@ void buildcellcrawler(cell *c, cellcrawler& cr, int dir) {
|
|||||||
for(int i=0; i<N; i++)
|
for(int i=0; i<N; i++)
|
||||||
if(curtemp[i] < vmin) vmin = curtemp[i];
|
if(curtemp[i] < vmin) vmin = curtemp[i];
|
||||||
else if(curtemp[i] > vmax) vmax = 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_count) {
|
||||||
if(!dispersion_long) dispersion_count = isize(d);
|
if(!dispersion_long) dispersion_count = isize(d);
|
||||||
DEBB(DF_LOG, ("Dispersion count = ", isize(d), " celldist = ", celldist(c)));
|
DEBB(DF_LOG, ("Dispersion count = ", isize(d), " celldist = ", celldist(c)));
|
||||||
@@ -665,7 +664,7 @@ void step() {
|
|||||||
neuron& n = winner(id);
|
neuron& n = winner(id);
|
||||||
whowon.resize(samples);
|
whowon.resize(samples);
|
||||||
whowon[id] = &n;
|
whowon[id] = &n;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
for(neuron& n2: net) {
|
for(neuron& n2: net) {
|
||||||
int d = celldistance(n.where, n2.where);
|
int d = celldistance(n.where, n2.where);
|
||||||
|
|||||||
Reference in New Issue
Block a user