.. include:: ../substitutions

.. oe:namespace:: OEGraphSim

.. meta::
   :keywords: OETversky

.. oe:function:: OETversky

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

      .. oe:api::

         float OETversky(const OEFingerPrint& fpA, const OEFingerPrint& fpB,
                         float a, float b)

   .. oe:language:: python

      .. oe:api:: python

         OETversky(fpA: OEFingerPrint, fpB: OEFingerPrint, a: float, b: float) -> float

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

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

   .. seealso::

      * :ref:`section_measure_tversky` section

