Generalized partitioned local depth