The estimation of the fitness function from two samples taken from a population