.. include:: ../substitutions

.. oe:namespace:: OEGraphSim

.. meta::
   :keywords: OEManhattan

.. oe:function:: OEManhattan

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

      .. oe:api::

         float OEManhattan(const OEFingerPrint& fpA, const OEFingerPrint& fpB)

   .. oe:language:: python

      .. oe:api:: python

         OEManhattan(fpA: OEFingerPrint, fpB: OEFingerPrint) -> float

   Calculates the Manhattan similarity value of two
   :ref:`OEFingerPrint <OEGraphSim_OEFingerPrint>` objects.

   **Formula:**
     :math:`Sim_{Manhattan}(A,B) = \frac{onlyA + onlyB}{onlyA + onlyB + bothAB + neitherAB}`

   .. seealso::

      * :ref:`section_measure_manhattan` section

