<?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: Linear Interpolation in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Linear-Interpolation/m-p/2261289#M42111</link>
    <description>&lt;P&gt;Unfortunately, re-purposing the old python code isn't an option for us.&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2017 15:51:34 GMT</pubDate>
    <dc:creator>kderose</dc:creator>
    <dc:date>2017-05-11T15:51:34Z</dc:date>
    <item>
      <title>Linear Interpolation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Linear-Interpolation/m-p/2261287#M42109</link>
      <description>&lt;P&gt;Is there a way to do a linear interpolation using a database feed and a lookup table? We receive continuous data from our onsite monitoring, and we need to lookup a reference table(see below) to get an output. The value of the continuous data references the first column and then interpolated output based on the second column is produced.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; For example, if we receive a value of 590.10ft, we would like to get an answer of ~13.4cfs.&amp;nbsp; We currently have excel spreadsheets and some old Python code that can produce this but is this possible using TOS?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;TABLE cellspacing="0" cellpadding="0" border="0"&gt; 
 &lt;TBODY&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;[ft]&lt;/TD&gt; 
   &lt;TD&gt;[cfs]&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;0&lt;/TD&gt; 
   &lt;TD&gt;0&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;590&lt;/TD&gt; 
   &lt;TD&gt;0&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;590.02&lt;/TD&gt; 
   &lt;TD&gt;7&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;590.09&lt;/TD&gt; 
   &lt;TD&gt;65&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;590.13&lt;/TD&gt; 
   &lt;TD&gt;112&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;590.18&lt;/TD&gt; 
   &lt;TD&gt;183&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;590.2&lt;/TD&gt; 
   &lt;TD&gt;215&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;590.25&lt;/TD&gt; 
   &lt;TD&gt;300&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;590.28&lt;/TD&gt; 
   &lt;TD&gt;356&lt;/TD&gt; 
  &lt;/TR&gt; 
 &lt;/TBODY&gt; 
&lt;/TABLE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Linear-Interpolation/m-p/2261287#M42109</guid>
      <dc:creator>kderose</dc:creator>
      <dc:date>2024-11-16T09:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Interpolation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Linear-Interpolation/m-p/2261288#M42110</link>
      <description>&lt;P&gt;Yes. Just translate your Python code into Java and apply it in a Job.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 14:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Linear-Interpolation/m-p/2261288#M42110</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-09T14:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Interpolation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Linear-Interpolation/m-p/2261289#M42111</link>
      <description>&lt;P&gt;Unfortunately, re-purposing the old python code isn't an option for us.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 15:51:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Linear-Interpolation/m-p/2261289#M42111</guid>
      <dc:creator>kderose</dc:creator>
      <dc:date>2017-05-11T15:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Linear Interpolation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Linear-Interpolation/m-p/2261290#M42112</link>
      <description>&lt;P&gt;OK, well this may work for you.....&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.java2s.com/Code/Java/Collections-Data-Structure/LinearInterpolation.htm" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.java2s.com/Code/Java/Collections-Data-Structure/LinearInterpolation.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can plug that code into a Talend routine and use to carry out your calculation&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 16:10:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Linear-Interpolation/m-p/2261290#M42112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-11T16:10:19Z</dc:date>
    </item>
  </channel>
</rss>

