.. include:: ../substitutions

.. oe:namespace:: OEGraphSim

.. meta::
   :keywords: OEGetBitCounts

.. oe:function:: OEGetBitCounts

   .. oe:language:: c++ java csharp

      .. oe:api::

         bool OEGetBitCounts(const OEFingerPrint& fpA,
                             const OEFingerPrint& fpB, unsigned int* onlyA,
                             unsigned int* onlyB, unsigned int* bothAB,
                             unsigned int* neitherAB)
   .. oe:language:: python

      .. oe:api::

         OEGetBitCounts(OEFingerPrint fpA, OEFingerPrint fpB) -> (onlyA, onlyB, bothAB, neitherAB)

   *fpA*, *pfB*
      The two :ref:`OEFingerPrint <OEGraphSim_OEFingerPrint>` objects being compared.

   *onlyA*
      The number of bits set "on" in fingerprint *fpA* but not in *fpB*.

   *onlyB*
      The number of bits set "on" in fingerprint *fpB* but not in *fpA*.

   *bothAB*
      The number of bits set "on" in both :ref:`OEFingerPrint <OEGraphSim_OEFingerPrint>` objects.

   *neitherAB*
      The number of bits unset in both :ref:`OEFingerPrint <OEGraphSim_OEFingerPrint>` objects.

   .. seealso::

      * :ref:`section_measure_user_defined` section

