Optimization and application of the distribution of relaxation times based on characteristic frequency resolution and hyperparameters