dolphin278 / genetic

Implementation of genetic algorithms for nodejs
179 stars 41 forks source link

recalculate sum when inverting scores #7

Open mitjap opened 9 years ago

mitjap commented 9 years ago

Sum should be recalculated after inverting scores as sum is not the same anymore. Application crashes when adding new scores until it reaches level (which is between 0 and sum, where sum is greater then actual sum), because of "IndexOutOfBoundsException".