(clusters_w_vals, method=np.median)
return [method(vals) for _, vals in clusters_w_vals]
Calculate the cluster centers (for 1D clusters) using <method>.
    <clusters_w_vals> must be a sequence of tuples t where t[1] contains the values (as returned from
    zip_clusters_and_values).
Calculate the cluster centers (for 1D clusters) using <method>.
    <clusters_w_vals> must be a sequence of tuples t where t[1] contains the values (as returned from
    zip_clusters_and_values).
Calculate the cluster centers ( for 1D clusters ) using <method > . <clusters_w_vals > must be a sequence of tuples t where t [ 1 ] contains the values ( as returned from zip_clusters_and_values ) .
def calc_cluster_centers_1d(clusters_w_vals, method=np.median):
    """
    Calculate the cluster centers (for 1D clusters) using <method>.
    <clusters_w_vals> must be a sequence of tuples t where t[1] contains the values (as returned from
    zip_clusters_and_values).
    """
    return [method(vals) for _, vals in clusters_w_vals]
def calc_cluster_centers_1d ( clusters_w_vals , method = np . median ) : return [ method ( vals ) for _ , vals in clusters_w_vals ]