What exactly constitutes close, average, clear or crushing victory?

From which factiors depend type of the victory you can gain?