<?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 Re:big difference of kurt between float and double in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/big-difference-of-kurt-between-float-and-double/m-p/1379473#M33067</link>
    <description>&lt;P&gt;Thank you for reaching us. This issue is closing and we will no longer respond to this thread.&amp;nbsp;If you require additional assistance from Intel, please start a new thread.&amp;nbsp;Any further interaction in this thread will be considered community only.&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 25 Apr 2022 08:54:06 GMT</pubDate>
    <dc:creator>Ruqiu_C_Intel</dc:creator>
    <dc:date>2022-04-25T08:54:06Z</dc:date>
    <item>
      <title>big difference of kurt between float and double</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/big-difference-of-kurt-between-float-and-double/m-p/1365753#M32860</link>
      <description>&lt;P&gt;I test computing kurtosis by MKL&amp;nbsp; with float and double , and get strange result as following , why kurt of float and double have such big difference ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;double skew -3.2811 ,kurt 9.3626 ,mean 32.29 ,r2m 1042.57,r3m 33668.46 ,r4m 1087393.04&lt;BR /&gt;float skew -3.3029 ,kurt 5.7297 ,mean 32.29 ,r2m 1042.57,r3m 33668.46 ,r4m 1087393.00&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;#define DIM 1
#define N  16
void test_mkl_skew_double()
{
        VSLSSTaskPtr task;
        double x[N]= {32.368824, 32.3732567, 32.3706436, 32.3741646, 32.3736801, 32.3755112, 32.3742905, 32.3735313, 32.3738403, 30.9899216, 32.3761978, 32.3737259, 32.3755112, 32.3710899, 32.3742638, 32.3742638};
        double mean=0,skew=0,kurt={0},vari=0;
        MKL_INT p,n,xst;
        int status;
        p=DIM;
        n=N;
        xst=VSL_SS_MATRIX_STORAGE_ROWS;
        status = vsldSSNewTask( &amp;amp;task, &amp;amp;p, &amp;amp;n, &amp;amp;xst, x, 0, 0 );
        double rm[8]={-1};
        status=vsldSSEditMoments(task,&amp;amp;rm[0],&amp;amp;rm[1],&amp;amp;rm[2],&amp;amp;rm[3],&amp;amp;rm[4],&amp;amp;rm[6],&amp;amp;rm[5]);
        status = vsldSSEditTask( task, VSL_SS_ED_SKEWNESS, &amp;amp;skew );
        status = vsldSSEditTask( task, VSL_SS_ED_KURTOSIS, &amp;amp;kurt );
        MKL_UINT64 mask = VSL_SS_MEAN | VSL_SS_KURTOSIS | VSL_SS_SKEWNESS | VSL_SS_2R_MOM | VSL_SS_3R_MOM | VSL_SS_4R_MOM | VSL_SS_2C_MOM | VSL_SS_3C_MOM | VSL_SS_4C_MOM  ;
        status = vsldSSCompute(task, mask, VSL_SS_METHOD_FAST );
        status = vslSSDeleteTask( &amp;amp;task );
        printf ("double skew %.4f ,kurt %.4f ,mean %.2f ,r2m %.2f,r3m %.2f ,r4m %.2f\n",skew,kurt,rm[0],rm[1],rm[2],rm[3]);
}
void test_mkl_skew_float()
{
        VSLSSTaskPtr task;
        float x[N]= {32.368824, 32.3732567, 32.3706436, 32.3741646, 32.3736801, 32.3755112, 32.3742905, 32.3735313, 32.3738403, 30.9899216, 32.3761978, 32.3737259, 32.3755112, 32.3710899, 32.3742638, 32.3742638};
        float mean=0,skew=0,kurt={0},vari=0;
        MKL_INT p,n,xst;
        int status;
        p=DIM;
        n=N;
        xst=VSL_SS_MATRIX_STORAGE_ROWS;
        status = vslsSSNewTask( &amp;amp;task, &amp;amp;p, &amp;amp;n, &amp;amp;xst, x, 0, 0 );
        float rm[8]={-1};
        status=vslsSSEditMoments(task,&amp;amp;rm[0],&amp;amp;rm[1],&amp;amp;rm[2],&amp;amp;rm[3],&amp;amp;rm[4],&amp;amp;rm[6],&amp;amp;rm[5]);
        status = vslsSSEditTask( task, VSL_SS_ED_SKEWNESS, &amp;amp;skew );
        status = vslsSSEditTask( task, VSL_SS_ED_KURTOSIS, &amp;amp;kurt );
        MKL_UINT64 mask = VSL_SS_MEAN | VSL_SS_KURTOSIS | VSL_SS_SKEWNESS | VSL_SS_2R_MOM | VSL_SS_3R_MOM | VSL_SS_4R_MOM | VSL_SS_2C_MOM | VSL_SS_3C_MOM | VSL_SS_4C_MOM  ;
        status = vslsSSCompute(task, mask, VSL_SS_METHOD_FAST );
        status = vslSSDeleteTask( &amp;amp;task );
        printf ("float skew %.4f ,kurt %.4f ,mean %.2f ,r2m %.2f,r3m %.2f ,r4m %.2f\n",skew,kurt,rm[0],rm[1],rm[2],rm[3]);
}
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 04 Mar 2022 07:50:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/big-difference-of-kurt-between-float-and-double/m-p/1365753#M32860</guid>
      <dc:creator>rolandsun</dc:creator>
      <dc:date>2022-03-04T07:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: big difference of kurt between float and double</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/big-difference-of-kurt-between-float-and-double/m-p/1365811#M32864</link>
      <description>&lt;P&gt;Hi Roland,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue raised by you is reproducible with VSL_SS_METHOD_FAST method parameter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Meanwhile could you please try changing the method parameter to the function vslSSCompute as shown below?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;//kurtosis of double datatype
status = vsldSSCompute(task, mask, VSL_SS_METHOD_1PASS);
//kurtosis of float datatype
status = vslsSSCompute(task, mask, VSL_SS_METHOD_1PASS );
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We checked it from our end and could see that the results are same for both float and double kurtosis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reference Link:&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-c/top/statistical-functions/summary-statistics/summary-statistics-task-computation-routines.html#summary-statistics-task-computation-routines_TBL10-29" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-c/top/statistical-functions/summary-statistics/summary-statistics-task-computation-routines.html#summary-statistics-task-computation-routines_TBL10-29&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to the below screenshot and do let us know if it helps in resolving the issue.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VidyalathaB_Intel_0-1646392668170.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/27261i7945B94FC02F9403/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="VidyalathaB_Intel_0-1646392668170.png" alt="VidyalathaB_Intel_0-1646392668170.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vidya.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 11:37:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/big-difference-of-kurt-between-float-and-double/m-p/1365811#M32864</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-03-04T11:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: big difference of kurt between float and double</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/big-difference-of-kurt-between-float-and-double/m-p/1366177#M32870</link>
      <description>&lt;P&gt;It works ,thankyou very much.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 00:59:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/big-difference-of-kurt-between-float-and-double/m-p/1366177#M32870</guid>
      <dc:creator>rolandsun</dc:creator>
      <dc:date>2022-03-07T00:59:26Z</dc:date>
    </item>
    <item>
      <title>Re:big difference of kurt between float and double</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/big-difference-of-kurt-between-float-and-double/m-p/1379473#M33067</link>
      <description>&lt;P&gt;Thank you for reaching us. This issue is closing and we will no longer respond to this thread.&amp;nbsp;If you require additional assistance from Intel, please start a new thread.&amp;nbsp;Any further interaction in this thread will be considered community only.&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Apr 2022 08:54:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/big-difference-of-kurt-between-float-and-double/m-p/1379473#M33067</guid>
      <dc:creator>Ruqiu_C_Intel</dc:creator>
      <dc:date>2022-04-25T08:54:06Z</dc:date>
    </item>
  </channel>
</rss>

