.. # split from OESystemFunctions.rst:1415

.. include:: ../substitutions

.. oe:namespace:: OESystem

.. meta::
   :keywords: OEGridAvgVal

.. attention::

   This function is available in C++ and Python only.

.. oe:function:: OEGridAvgVal

   .. oe:api::

      template<class GridType>
      GridType OEGridAvgVal(const OEFixedGrid<GridType>& grid)

   Returns the average value of the ``grid``.

   .. oe:language:: python

      The following specializations exist for this template:

      =================== =============================================
      OEDoubleGridAvgVal  OESystem::OEGridAvgVal<double>
      OEFloatGridAvgVal   OESystem::OEGridAvgVal<float>
      OEIntGridAvgVal     OESystem::OEGridAvgVal<int>
      =================== =============================================


