potential_synapses(Cell07PNs[1], Cell07PNs[1:3], s=2)
if (FALSE) {
# if you have many neurons to calculate you should get a progress bar
potential_synapses(Cell07PNs[1:10], Cell07PNs[11:20], s=2)
# you can also use parallel execution, here over 7 cores
# doMC::registerDoMC(7)
potential_synapses(Cell07PNs[1:10], Cell07PNs[11:20], s=2, .parallel=TRUE)
}
Run the code above in your browser using DataLab