<?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 ippsTone_Direct_32f function to generate sine phasor in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippsTone-Direct-32f-function-to-genrate-sine-phasor/m-p/765983#M220</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;The EVM i.e difference betweenthe matlab numerical value and IPP results increases as the number of sample points are big like 10^5 and high...&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rohit&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2012 10:16:37 GMT</pubDate>
    <dc:creator>rohitspandey</dc:creator>
    <dc:date>2012-01-10T10:16:37Z</dc:date>
    <item>
      <title>ippsTone_Direct_32f function to genrate sine phasor</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippsTone-Direct-32f-function-to-genrate-sine-phasor/m-p/765980#M217</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am try to genrate quadrature phasor vector using ippsTone_Direct_32f&lt;BR /&gt;&lt;BR /&gt;foffsin = foffCos + pi/2;&lt;BR /&gt;&lt;BR /&gt;.ippStatsSin = ippsTone_Direct_32f(&amp;amp;v2[0],Np,1.0,foffsin,&amp;amp;ZeroPh1,ippAlgHintAccurate);&lt;BR /&gt;&lt;BR /&gt;but the genrated phasor is inverse i.e instead sin(x) its gnerating sin(-x); If i try foffsin = foffCos - pi/2 the phasor is all zero.&lt;BR /&gt;Kindly let me know what could be wrong.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rohit</description>
      <pubDate>Thu, 05 Jan 2012 19:09:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippsTone-Direct-32f-function-to-genrate-sine-phasor/m-p/765980#M217</guid>
      <dc:creator>rohitspandey</dc:creator>
      <dc:date>2012-01-05T19:09:08Z</dc:date>
    </item>
    <item>
      <title>ippsTone_Direct_32f function to genrate sine phasor</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippsTone-Direct-32f-function-to-genrate-sine-phasor/m-p/765981#M218</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The problem was due to freq range in case of real is 0-0.5 instead of 0-1. But t perfromace of IPP function is not comparable with matlab. Kindly share some light on this&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rohit</description>
      <pubDate>Thu, 05 Jan 2012 19:38:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippsTone-Direct-32f-function-to-genrate-sine-phasor/m-p/765981#M218</guid>
      <dc:creator>rohitspandey</dc:creator>
      <dc:date>2012-01-05T19:38:44Z</dc:date>
    </item>
    <item>
      <title>ippsTone_Direct_32f function to generate sine phasor</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippsTone-Direct-32f-function-to-genrate-sine-phasor/m-p/765982#M219</link>
      <description>&lt;DIV id="tiny_quote"&gt;&lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A jquery1325859976703="53" rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=543719" href="https://community.intel.com/en-us/profile/543719/" class="basic"&gt;rohitspandey&lt;/A&gt;&lt;/DIV&gt;&lt;DIV style="background-color: #e5e5e5; margin-left: 2px; margin-right: 2px; border: 1px inset; padding: 5px;"&gt;&lt;I&gt;...Butperfromace of IPP function is not comparable with matlab...&lt;/I&gt;&lt;/DIV&gt;&lt;BR /&gt;Could you provide more technical details? Was it faster or slower?&lt;/DIV&gt;</description>
      <pubDate>Fri, 06 Jan 2012 14:28:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippsTone-Direct-32f-function-to-genrate-sine-phasor/m-p/765982#M219</guid>
      <dc:creator>SergeyKostrov</dc:creator>
      <dc:date>2012-01-06T14:28:05Z</dc:date>
    </item>
    <item>
      <title>ippsTone_Direct_32f function to generate sine phasor</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippsTone-Direct-32f-function-to-genrate-sine-phasor/m-p/765983#M220</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;The EVM i.e difference betweenthe matlab numerical value and IPP results increases as the number of sample points are big like 10^5 and high...&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rohit&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2012 10:16:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippsTone-Direct-32f-function-to-genrate-sine-phasor/m-p/765983#M220</guid>
      <dc:creator>rohitspandey</dc:creator>
      <dc:date>2012-01-10T10:16:37Z</dc:date>
    </item>
    <item>
      <title>ippsTone_Direct_32f function to generate sine phasor</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippsTone-Direct-32f-function-to-genrate-sine-phasor/m-p/765984#M221</link>
      <description>Matlab uses 64f internaly (maybe 80f) - so you can try ippsTone_Direct_64f with conversion to 32f&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Igor</description>
      <pubDate>Tue, 10 Jan 2012 12:50:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippsTone-Direct-32f-function-to-genrate-sine-phasor/m-p/765984#M221</guid>
      <dc:creator>igorastakhov</dc:creator>
      <dc:date>2012-01-10T12:50:56Z</dc:date>
    </item>
    <item>
      <title>ippsTone_Direct_32f function to generate sine phasor</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippsTone-Direct-32f-function-to-genrate-sine-phasor/m-p/765985#M222</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thats correct matlab uses double but if use the float variable in matlab the the results should be same.But you will see this is not the case. I tried comparing the tone generation with direct sin and cos function and compared the results are different.Tone generation function is not correctly working&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Direct implementation&lt;/P&gt;&lt;P&gt;ippC = ippsVectorSlope_32f(&amp;amp;v1[0],Np,0,foff);&lt;/P&gt;&lt;P&gt;ippA = ippsCos_32f_A24(&amp;amp;v1[0], &amp;amp;v2[0], Np);&lt;/P&gt;&lt;P&gt;ippB = ippsSin_32f_A24(&amp;amp;v1[0], &amp;amp;v3[0], Np);&lt;/P&gt;&lt;P&gt;tone genrator&lt;/P&gt;&lt;P&gt;ippStatsSin = ippsTone_Direct_32fc(pbuf,Np,1.0,foff,&amp;amp;ZeroPh,ippAlgHintAccurate);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Used following matlab code&lt;/P&gt;&lt;P&gt;ang=2;%4,6,8,....&lt;/P&gt;&lt;P&gt;in=single([0:1:len-1]);&lt;/P&gt;&lt;P&gt;ph = single(pi/ang);&lt;/P&gt;&lt;P&gt;xI = single(cos(ph.*in));&lt;/P&gt;&lt;P&gt;xQ = single(sin(ph.*in));&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And compared the result among them and with matlab. The direct implementation exactly matches matlab while tone genrator has rounding error and it grows as number of sample&lt;BR /&gt;&lt;BR /&gt;Kindly verify the tone genrator implementation Function.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rohit&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2012 14:33:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippsTone-Direct-32f-function-to-genrate-sine-phasor/m-p/765985#M222</guid>
      <dc:creator>rohitspandey</dc:creator>
      <dc:date>2012-01-20T14:33:45Z</dc:date>
    </item>
    <item>
      <title>Matlab isn't infallible</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/ippsTone-Direct-32f-function-to-genrate-sine-phasor/m-p/765986#M223</link>
      <description>Using your example, try this:&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;xl1 = single(cos(single(single(pi/2)*(0:100000))));&lt;/DIV&gt;&lt;DIV&gt;xl2 = single(cos(pi/2*(0:100000)));&lt;/DIV&gt;&lt;DIV&gt;plot(xl1-xl2)&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The error will grow linearly with length (on average).&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Now try this:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;xl1a = single(cos(single(single(pi/2)*mod(0:100000,4))));&lt;/DIV&gt;&lt;DIV&gt;hold on;&lt;/DIV&gt;&lt;DIV&gt;plot(xl1a-xl2, 'g')&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The error will be consistent and very small.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Cos and Sin are VERY sensitive to precision when their value is near zero, and since the cos(x) = cos(mod(x,2*pi)), the loss of significant digits to the right of the decimal has a huge impact on the output.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The main point is that your single precision matlab code is not a good reference.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Feb 2012 01:59:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/ippsTone-Direct-32f-function-to-genrate-sine-phasor/m-p/765986#M223</guid>
      <dc:creator>jeffc111</dc:creator>
      <dc:date>2012-02-08T01:59:07Z</dc:date>
    </item>
  </channel>
</rss>

