File tree 2 files changed +6
-1
lines changed
src/main/java/network/aika
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 24
24
import network .aika .neuron .INeuron ;
25
25
import network .aika .neuron .Synapse ;
26
26
import network .aika .neuron .activation .Activation ;
27
- import network .aika .neuron .activation .Activation .Link ;
28
27
import network .aika .neuron .activation .Activation .Option ;
29
28
import network .aika .neuron .activation .Candidate ;
30
29
import network .aika .neuron .activation .Position ;
Original file line number Diff line number Diff line change @@ -551,6 +551,12 @@ public void propagate(Activation act) {
551
551
552
552
553
553
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
+
554
560
if (provider .id < n .provider .id ) return -1 ;
555
561
else if (provider .id > n .provider .id ) return 1 ;
556
562
else return 0 ;
You can’t perform that action at this time.
0 commit comments