Functions | |
def | logit_av_scale |
Compute the logit choice probability with utilities scaled according to the group. | |
def | logit |
Compute the logit choice probability, where all alternatives are available. | |
def | logit_scale |
Compute the logit choice probability with utilities scaled according to the group. |
def logit::logit | ( | V, | |
choice | |||
) |
Compute the logit choice probability, where all alternatives are available.
V | A dictionary mapping each alternative id with the expression of the utility function. |
choice | expression producing the id of the chosen alternative. |
def logit::logit_av_scale | ( | V, | |
availability, | |||
choice, | |||
group, | |||
scale | |||
) |
Compute the logit choice probability with utilities scaled according to the group.
V | A dictionary mapping each alternative id with the expression of the utility function. |
availability | A dictionary mapping each alternative id with its availability condition. |
choice | expression producing the id of the chosen alternative. |
group | id of the group, or market segment. |
scale | A dictionary mapping each group id with the expression providing the corresponding scale. |
def logit::logit_scale | ( | V, | |
choice, | |||
group, | |||
scale | |||
) |
Compute the logit choice probability with utilities scaled according to the group.
V | A dictionary mapping each alternative id with the expression of the utility function. |
choice | expression producing the id of the chosen alternative. |
group | id of the group, or market segment. |
scale | A dictionary mapping each group id with the expression providing the corresponding scale. |