- Timestamp:
- 06/15/09 20:59:29 (3 years ago)
- Files:
-
- 1 modified
-
trunk/src/signals/pairs.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/signals/pairs.py
r398 r399 180 180 def __init__(self, spk1, spk2, no_silent=False, no_auto=True, lenght=1.): 181 181 PairsGenerator.__init__(self, spk1, spk2, no_silent) 182 182 183 self.lenght = lenght 183 184 self.no_auto = no_auto 184 185 185 186 def get_pairs(self, nb_pairs, d_min, d_max): 187 """ 188 Function to obtain a certain number of cells from the generator 189 190 Inputs: 191 nb_pairs - int to specify the number of pairs desired 192 d_min - the minimal distance between cells 193 d_max - the maximal distance between cells 194 195 The length parameter of the DistantDependentPairs should be defined correctly. It is the extent of the grid. 196 197 Examples: 198 >> res = p.get_pairs(100, 0.3, 0.5) 199 """ 186 200 cells1 = numpy.array(list(self.ids_1), int) 187 201 cells2 = numpy.array(list(self.ids_2), int)
