.. include:: ../substitutions

.. oe:namespace:: OEGraphSim

.. meta::
   :keywords: OEDice

.. oe:function:: OEDice

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

      .. oe:api::

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

   .. oe:language:: python

      .. oe:api:: python

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

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

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

   .. seealso::

      * :ref:`section_measure_dice` section

