<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Computing a moving average/sum in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Computing-a-moving-average-sum/m-p/931700#M16739</link>
    <description>Hi&lt;BR /&gt;In one of my algorithms I am computing a moving sum of a vector. Say my vector( VEC ) is length N and my window size is W I compute it like this:&lt;BR /&gt;&lt;BR /&gt;ippsSum_32f(VEC+1,W,VEC,ippAlgHintFast);&lt;BR /&gt;int endIndx = FULL_WINDOW_SIZE+1,frontIndx = 0;&lt;BR /&gt;for(int k=1;k(N-W);k++,endIndx++,frontIndx++)&lt;BR /&gt;{&lt;BR /&gt;VEC&lt;K&gt; = VEC[frontIndx] - VEC&lt;K&gt; + VEC[endIndx];&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Is there a faster way? Thank you for any help. Thorsan&lt;/K&gt;&lt;/K&gt;</description>
    <pubDate>Wed, 26 Apr 2006 19:40:49 GMT</pubDate>
    <dc:creator>thorsan1</dc:creator>
    <dc:date>2006-04-26T19:40:49Z</dc:date>
    <item>
      <title>Computing a moving average/sum</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Computing-a-moving-average-sum/m-p/931700#M16739</link>
      <description>Hi&lt;BR /&gt;In one of my algorithms I am computing a moving sum of a vector. Say my vector( VEC ) is length N and my window size is W I compute it like this:&lt;BR /&gt;&lt;BR /&gt;ippsSum_32f(VEC+1,W,VEC,ippAlgHintFast);&lt;BR /&gt;int endIndx = FULL_WINDOW_SIZE+1,frontIndx = 0;&lt;BR /&gt;for(int k=1;k(N-W);k++,endIndx++,frontIndx++)&lt;BR /&gt;{&lt;BR /&gt;VEC&lt;K&gt; = VEC[frontIndx] - VEC&lt;K&gt; + VEC[endIndx];&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Is there a faster way? Thank you for any help. Thorsan&lt;/K&gt;&lt;/K&gt;</description>
      <pubDate>Wed, 26 Apr 2006 19:40:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Computing-a-moving-average-sum/m-p/931700#M16739</guid>
      <dc:creator>thorsan1</dc:creator>
      <dc:date>2006-04-26T19:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Computing a moving average/sum</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Computing-a-moving-average-sum/m-p/931701#M16740</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;you can use IPP function:&lt;/P&gt;&lt;FONT color="#000080" size="2"&gt;
&lt;P&gt;/* ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;BR /&gt;// Name: ippsSumWindow_8u32f ippsSumWindow_16s32f&lt;BR /&gt;// Purpose:&lt;BR /&gt;// Return:&lt;BR /&gt;// ippStsNoErr Ok&lt;BR /&gt;// ippStsNullPtrErr one or more pointers are NULL&lt;BR /&gt;// ippStsMaskSizeErr maskSize has a field with zero, or negative value&lt;BR /&gt;// Arguments:&lt;BR /&gt;// pSrc Pointer to the source vector&lt;BR /&gt;// pDst Pointer to the destination vector&lt;BR /&gt;// maskSize Size of the mask in pixels&lt;BR /&gt;*/&lt;/P&gt;
&lt;P&gt;IPPAPI(IppStatus,ippsSumWindow_8u32f ,(const Ipp8u* pSrc,Ipp32f* pDst,int len, int maskSize ))&lt;BR /&gt;IPPAPI(IppStatus,ippsSumWindow_16s32f,(const Ipp16s* pSrc,Ipp32f* pDst,int len, int maskSize ))&lt;/P&gt;&lt;/FONT&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2006 16:51:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Computing-a-moving-average-sum/m-p/931701#M16740</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2006-05-02T16:51:38Z</dc:date>
    </item>
  </channel>
</rss>

