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 as an S-shaped function of the number of generations completed up to the moment.