muspan.query.
is_A_contained_by_B#
- is_A_contained_by_B(domain, population_A, population_B)#
Determine if each object in population_A is contained by any object in population_B.
- Parameters:
- domainmuspan.domain
A muspan domain.
- population_Aquery-like
An array of object indices or a query-like object that can be interpreted as a collection of object IDs.
- population_Bquery-like
An array of object indices or a query-like object that can be interpreted as a collection of object IDs.
- Returns:
- contains_arrayndarray
Array of length len(object_indices_A) containing booleans indicating whether each object in objects_identifier_A is contained by any object in objects_identifier_B.
- object_indices_Andarray
Array containing the object indices specified by objects_identifier_A.
- containing_indicesndarray
Array containing the indices of objects in objects_identifier_B that contain the corresponding objects in objects_identifier_A.