In general, a state-value function describes how advantageous it is to be in some state .