def compute_edge_weight(hist_one, hist_two, weight_func):
    """
    Computes the edge weight between the two histograms.

    Parameters
    ----------
    hist_one : sequence
        First histogram

    hist_two : sequence
        Second histogram

    weight_func : callable
        Identifying the type of distance (or metric) to compute between the pair of histograms.
        Must be one of the metrics implemented in medpy.metric.histogram, or another valid callable.

    Returns
    -------
    edge_value : float
        Distance or metric between the two histograms
    """

    edge_value = weight_func(hist_one, hist_two)

    return edge_value