File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/main/java/network/aika Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 2424import network .aika .neuron .INeuron ;
2525import network .aika .neuron .Synapse ;
2626import network .aika .neuron .activation .Activation ;
27- import network .aika .neuron .activation .Activation .Link ;
2827import network .aika .neuron .activation .Activation .Option ;
2928import network .aika .neuron .activation .Candidate ;
3029import network .aika .neuron .activation .Position ;
Original file line number Diff line number Diff line change @@ -551,6 +551,12 @@ public void propagate(Activation act) {
551551
552552
553553 public int compareTo (INeuron n ) {
554+ if (this == n ) return 0 ;
555+ if (this == MIN_NEURON ) return -1 ;
556+ if (n == MIN_NEURON ) return 1 ;
557+ if (this == MAX_NEURON ) return 1 ;
558+ if (n == MAX_NEURON ) return -1 ;
559+
554560 if (provider .id < n .provider .id ) return -1 ;
555561 else if (provider .id > n .provider .id ) return 1 ;
556562 else return 0 ;
You can’t perform that action at this time.
0 commit comments