コード例 #1
0
ファイル: measures.py プロジェクト: omerch/pyconto
def normalized_path_length(cmatrix):
    """ Given a distance matrix, computes the normalized shortest path length.

    Parameters
    ----------
    cmatrix : connection/adjacency matrix
    
    Returns
    -------    
    n : normalized shortest path length
    
    """
    m = bct.to_gslm(cmatrix.tolist())
    n = bct.normalized_path_length(m)
    bct.gsl_free(m)
    return n
コード例 #2
0
ファイル: measures.py プロジェクト: aestrivex/pyconto
def normalized_path_length(cmatrix):
    """ Given a distance matrix, computes the normalized shortest path length.

    Parameters
    ----------
    cmatrix : connection/adjacency matrix
    
    Returns
    -------    
    n : normalized shortest path length
    
    """
    m = bct.to_gslm(cmatrix.tolist())
    n = bct.normalized_path_length(m)
    bct.gsl_free(m)
    return n
コード例 #3
0
ファイル: bct.py プロジェクト: aestrivex/pyconto
def normalized_path_length(*args):
  return _bct.normalized_path_length(*args)
コード例 #4
0
def normalized_path_length(*args):
    return _bct.normalized_path_length(*args)
コード例 #5
0
ファイル: bct.py プロジェクト: aestrivex/pyconto
def normalized_path_length(*args):
  """
    normalized_path_length(gsl_matrix D, double wmax = 1.0) -> double
    normalized_path_length(gsl_matrix D) -> double
    """
  return _bct.normalized_path_length(*args)
コード例 #6
0
ファイル: bct.py プロジェクト: omerch/pyconto
def normalized_path_length(*args):
    """
    normalized_path_length(gsl_matrix D, double wmax = 1.0) -> double
    normalized_path_length(gsl_matrix D) -> double
    """
    return _bct.normalized_path_length(*args)