sparse_delays_from_weights
sparse_delays_from_weights(weights, delays)
Returns a sparse delay matrix with the same connectivity as the sparse matrix weight_matrix
.
= sparse_random_matrix(pre=pop1, post=pop2, p=0.1, w=ann.Uniform(0.0, 1.0))
matrix = sparse_delays_from_weights(matrix, ann.Uniform(5.0, 10.0))
delays proj.from_sparse(matrix, delays)
Parameters
Name | Type | Description | Default |
---|---|---|---|
weights | scipy.sparse.lil_matrix | scipy sparse matrix to use for the connectivity. | required |
delays | float | RandomDistribution | delay value (constant or random). | required |