cobsurv.models.distance_functions.distance_cross_entropy_from_mean#
- cobsurv.models.distance_functions.distance_cross_entropy_from_mean(prob1, prob2, times=None)#
The cross entropy between two curves and the mean of the two curves
- Parameters:
prob1 (1d array) – The first curve
prob2 (1d array) – The second curve
times (None) – times is not needed for this distance
- Returns:
cross entropy – The cross entropy between the curves and the mean of the curves
- Return type:
float