count_shared
count_shared(pi, pj)
Categories: Indexing, Sparse
Description
takes two sorted arrays in pi and pj and counts how many collisions there are. Useful to compare two lists of peak to grain assignments, or pixel to peak assignments, etc
Parameters
| Name | Description |
|---|---|
pi |
First sorted array of integer labels. |
pj |
Second sorted array of integer labels. |
Constraints
( pi.format == 'i' or pi.format == 'l' )( pj.format == 'i' or pj.format == 'l' )
Overloads
| C function | Condition |
|---|---|
count_shared |
always |
Built from commit 7ba8255fa8d680e1a1df79e67aee3873247ce69c (v0.4.5)