Automatic K scaling by means of fractal and harmonic analysis