.. include:: ../substitutions

.. oe:namespace:: OEGraphSim

.. meta::
   :keywords: OETanimoto

.. oe:function:: OETanimoto

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

      .. oe:api::

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

   .. oe:language:: python

      .. oe:api:: python

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

   Calculates the :oe:const:`Tanimoto<OEGraphSim::OESimMeasure::Tanimoto>`
   similarity value of two :ref:`OEFingerPrint <OEGraphSim_OEFingerPrint>` objects.

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

   .. seealso::

      * :ref:`section_measure_tanimoto` section


