<?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 how to make a linear polynomial approximation by the least squares method in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-make-a-linear-polynomial-approximation-by-the-least/m-p/1296326#M31683</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a function f = y (x).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="least_squares_method.jpg" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/18048iCA9F47244D7DB8E9/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="least_squares_method.jpg" alt="least_squares_method.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;On the interval [a, b] I need to do a linear polynomial approximation of the data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Linear means that the polynomial is of the first degree.&lt;/P&gt;
&lt;P&gt;This means that it is described by two coefficients.&lt;/P&gt;
&lt;P&gt;Those. I need to find two coefficients by which I can draw a red line like in the picture.&lt;BR /&gt;What MKL library functions can I do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jul 2021 15:46:08 GMT</pubDate>
    <dc:creator>Serjio</dc:creator>
    <dc:date>2021-07-06T15:46:08Z</dc:date>
    <item>
      <title>how to make a linear polynomial approximation by the least squares method</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-make-a-linear-polynomial-approximation-by-the-least/m-p/1296326#M31683</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a function f = y (x).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="least_squares_method.jpg" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/18048iCA9F47244D7DB8E9/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="least_squares_method.jpg" alt="least_squares_method.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;On the interval [a, b] I need to do a linear polynomial approximation of the data.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Linear means that the polynomial is of the first degree.&lt;/P&gt;
&lt;P&gt;This means that it is described by two coefficients.&lt;/P&gt;
&lt;P&gt;Those. I need to find two coefficients by which I can draw a red line like in the picture.&lt;BR /&gt;What MKL library functions can I do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 15:46:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-make-a-linear-polynomial-approximation-by-the-least/m-p/1296326#M31683</guid>
      <dc:creator>Serjio</dc:creator>
      <dc:date>2021-07-06T15:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a linear polynomial approximation by the least squares method</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-make-a-linear-polynomial-approximation-by-the-least/m-p/1296342#M31684</link>
      <description>&lt;P&gt;You asked more or less the same question a month ago:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-make-an-analogue-of-the-polyfit-function-from-Matlab/m-p/1286941" target="_blank"&gt;https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-make-an-analogue-of-the-polyfit-function-from-Matlab/m-p/1286941&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and the question was answered in that thread. In short, use the Lapack routine ?GELS.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 16:50:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-make-a-linear-polynomial-approximation-by-the-least/m-p/1296342#M31684</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2021-07-06T16:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a linear polynomial approximation by the least squares method</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-make-a-linear-polynomial-approximation-by-the-least/m-p/1296684#M31701</link>
      <description>&lt;P&gt;Yes you are right. The problem is I can't figure out how to use the Lapack routine&amp;nbsp;&lt;SPAN&gt;?GELS.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I have my x[200] and y[200] data.&lt;/P&gt;
&lt;P&gt;How do I use my data in &lt;CODE&gt;LAPACKE_dgels()&lt;/CODE&gt;?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;info = LAPACKE_dgels(APACK_ROW_MAJOR,'N',m,n,nrhs,*a,lda,*b,ldb);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;And where will the result be? Where will the two coefficients be?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 15:49:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-make-a-linear-polynomial-approximation-by-the-least/m-p/1296684#M31701</guid>
      <dc:creator>Serjio</dc:creator>
      <dc:date>2021-07-07T15:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to make a linear polynomial approximation by the least squares method</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-make-a-linear-polynomial-approximation-by-the-least/m-p/1296749#M31702</link>
      <description>&lt;P&gt;See page 221 of &lt;A href="https://math.mit.edu/~gs/linearalgebra/ila0403.pdf" target="_self"&gt;this&lt;/A&gt;. Change the names of the variables from t to x and b to y.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 21:19:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-make-a-linear-polynomial-approximation-by-the-least/m-p/1296749#M31702</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2021-07-07T21:19:13Z</dc:date>
    </item>
    <item>
      <title>Re:how to make a linear polynomial approximation by the least squares method</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-make-a-linear-polynomial-approximation-by-the-least/m-p/1298396#M31761</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;Glad to know that your issue is resolved. If you need any additional information, please submit a new question as this thread will no longer be monitored.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Jul 2021 04:01:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-make-a-linear-polynomial-approximation-by-the-least/m-p/1298396#M31761</guid>
      <dc:creator>ArpitaP_Intel</dc:creator>
      <dc:date>2021-07-14T04:01:27Z</dc:date>
    </item>
  </channel>
</rss>

