.. include:: ../../toolkit-substitutions

.. oe:namespace:: OEShape

..  _OEShape_OEGridScoreType:

.. oe:constnamespace:: OEGridScoreType

.. attention::

   |PRELIMINARY-API|


This namespace controls the type of score to be used in the fit and returned by the :ref:`AddShapeGaussians<OEShape_OEShapeQuery_AddShapeGaussians>` and :ref:`AddColorGaussians<OEShape_OEShapeQuery_AddColorGaussians>` methods of :ref:`OEShapeQuery <OEShape_OEShapeQuery>`. This is processed via the options class :ref:`OEShapeQueryOptions <OEShape_OEShapeQueryOptions>`.


..  _OEShape_OEGridScoreType_CosAngle:


   .. oe:constant:: CosAngle
   
      Maximizes the cosine angle between two vectorized grids: the first from the input grid and the second from the one that follows from fitted Gaussians.
      This measure is insensitive to overall normalization of the input grid.

..  _OEShape_OEGridScoreType_Tanimoto:


   .. oe:constant:: Tanimoto
   
      Maximizes the Tanimoto between the input grid and the grid that follows from fitted Gaussians. This measure depends on self-overlaps of the input grid
      and the grid that follows from fitted Gaussians. Consequently, it is sensitive to the overall coefficient of the input grid.
