cobsurv.models.distance_functions.distance_euclidean#
- cobsurv.models.distance_functions.distance_euclidean(prob1, prob2, times=None)#
Calculates the euclidean distance between two curves at respective timepoints
- Parameters:
prob1 (1d array) – The first curve
prob2 (1d array) – The second curve
times (None) – times is not needed for this distance
- Returns:
euclidean distance – The euclidean distance between the curves
- Return type:
float