示例#1
0
def probabilities_q(theta, gamma, q):
    state = q_psi(theta=gamma, gamma=theta, q=q)
    total = abs(state[0]) + abs(state[1])
    probs = [np.power(state[0], 2), np.power(state[1], 2)]
    return (probs[0][0], probs[1][0])
def probabilities_q(theta, gamma, q):
    state = q_psi(theta=gamma, gamma=theta, q=q)
    total = abs(state[0]) + abs(state[1])
    probs = [abs(state[0]) / total, abs(state[1]) / total]
    return (probs[0][0], probs[1][0])
def probabilities_q(theta,gamma,q):
    state = q_psi(theta=gamma,gamma=theta,q=q)
    total = sum(state)
    probs = [state[0]/total,state[1]/total]
    return probs