double linear_time (int current, int total) Calculate a value for the time, in [0,1], as a function of the current generation and the total number of generations
Calculate a value for the time, in [0,1], as a function of the current generation and the total number of generations. With this function, time varies linearly with the generations.