blob: f059f9e90c29087cc1e8e1024130cb627bc0e4a9 [file] [log] [blame]
<!-- HTML header for doxygen 1.8.4-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<meta name="keywords" content="madlib,postgres,greenplum,machine learning,data mining,deep learning,ensemble methods,data science,market basket analysis,affinity analysis,pca,lda,regression,elastic net,huber white,proportional hazards,k-means,latent dirichlet allocation,bayes,support vector machines,svm"/>
<title>MADlib: arima.sql_in File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script><script src="../mathjax/MathJax.js"></script>
<!-- hack in the navigation tree -->
<script type="text/javascript" src="navtree_hack.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="madlib_extra.css" rel="stylesheet" type="text/css"/>
<!-- google analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-45382226-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><a href="http://madlib.incubator.apache.org"><img alt="Logo" src="madlib.png" height="50" style="padding-left:0.5em;" border="0"/ ></a></td>
<td style="padding-left: 0.5em;">
<div id="projectname">
<span id="projectnumber">1.8</span>
</div>
<div id="projectbrief">User Documentation for MADlib</div>
</td>
<td> <div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('arima_8sql__in.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">arima.sql_in File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Arima function for forecasting of timeseries data.
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a9af899e0260745b75b1872159fea1281"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="arima_8sql__in.html#a9af899e0260745b75b1872159fea1281">arima_train</a> (text input_table, text output_table, text timestamp_column, text timeseries_column, text grouping_columns, boolean include_mean, integer[] non_seasonal_orders, text optimizer_params)</td></tr>
<tr class="separator:a9af899e0260745b75b1872159fea1281"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5b071de3f011a05b877afd6a415f993"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="arima_8sql__in.html#ac5b071de3f011a05b877afd6a415f993">arima_train</a> (text input_table, text output_table, text timestamp_column, text timeseries_column, text grouping_columns, boolean include_mean, integer[] non_seasonal_orders)</td></tr>
<tr class="separator:ac5b071de3f011a05b877afd6a415f993"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4d148eefd1d5fbf4e613d5f10df4930"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="arima_8sql__in.html#ac4d148eefd1d5fbf4e613d5f10df4930">arima_train</a> (text input_table, text output_table, text timestamp_column, text timeseries_column, text grouping_columns, boolean include_mean)</td></tr>
<tr class="separator:ac4d148eefd1d5fbf4e613d5f10df4930"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47977919832510a148d237b11688aee6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="arima_8sql__in.html#a47977919832510a148d237b11688aee6">arima_train</a> (text input_table, text output_table, text timestamp_column, text timeseries_column, text grouping_columns)</td></tr>
<tr class="separator:a47977919832510a148d237b11688aee6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1842458490b5b3a3a80d9663792c5e48"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="arima_8sql__in.html#a1842458490b5b3a3a80d9663792c5e48">arima_train</a> (text input_table, text output_table, text timestamp_column, text timeseries_column)</td></tr>
<tr class="separator:a1842458490b5b3a3a80d9663792c5e48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52416f13110c15b6b7fe8736a4eb0202"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="arima_8sql__in.html#a52416f13110c15b6b7fe8736a4eb0202">arima_forecast</a> (text model_table, text output_table, integer steps_ahead)</td></tr>
<tr class="separator:a52416f13110c15b6b7fe8736a4eb0202"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97025971eb41b5480e279e8b56d5c018"><td class="memItemLeft" align="right" valign="top">text&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="arima_8sql__in.html#a97025971eb41b5480e279e8b56d5c018">arima_train</a> (text message)</td></tr>
<tr class="separator:a97025971eb41b5480e279e8b56d5c018"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71f407786355a4226ff44a94b6c80589"><td class="memItemLeft" align="right" valign="top">text&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="arima_8sql__in.html#a71f407786355a4226ff44a94b6c80589">arima_train</a> ()</td></tr>
<tr class="separator:a71f407786355a4226ff44a94b6c80589"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada9e8962693411ec919953bad1ef6007"><td class="memItemLeft" align="right" valign="top">text&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="arima_8sql__in.html#ada9e8962693411ec919953bad1ef6007">arima_forecast</a> (text message)</td></tr>
<tr class="separator:ada9e8962693411ec919953bad1ef6007"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08645edc97c591bce174964ac309a3a0"><td class="memItemLeft" align="right" valign="top">text&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="arima_8sql__in.html#a08645edc97c591bce174964ac309a3a0">arima_forecast</a> ()</td></tr>
<tr class="separator:a08645edc97c591bce174964ac309a3a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6955c191d95e1531655cea4617caf12c"><td class="memItemLeft" align="right" valign="top">float8[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="arima_8sql__in.html#a6955c191d95e1531655cea4617caf12c">__arima_residual</a> (integer distid, float8[] tvals, integer p, integer d, integer q, float8[] phi, float8[] theta, float8 <a class="el" href="svec__util_8sql__in.html#a546b947319c9f48237120a31929bdfd9">mean</a>, float8[] prez)</td></tr>
<tr class="separator:a6955c191d95e1531655cea4617caf12c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab686e554403a61a5404d83e692735ada"><td class="memItemLeft" align="right" valign="top">float8[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="arima_8sql__in.html#ab686e554403a61a5404d83e692735ada">__arima_diff</a> (float8[] tvals, integer d)</td></tr>
<tr class="separator:ab686e554403a61a5404d83e692735ada"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6f5621d79045e8270e6785ed0d98ce3"><td class="memItemLeft" align="right" valign="top">float8[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="arima_8sql__in.html#af6f5621d79045e8270e6785ed0d98ce3">__arima_adjust</a> (integer distid, float8[] curr_tvals, float8[] prev_tvals, integer p)</td></tr>
<tr class="separator:af6f5621d79045e8270e6785ed0d98ce3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a728067ea53fcb8fcbf66bbe296a783"><td class="memItemLeft" align="right" valign="top">float8[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="arima_8sql__in.html#a6a728067ea53fcb8fcbf66bbe296a783">__arima_lm_delta</a> (float8[] jj, float8[] jz, float8 u)</td></tr>
<tr class="separator:a6a728067ea53fcb8fcbf66bbe296a783"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aadd3c7627043810a7e650e80b7fafd52"><td class="memItemLeft" align="right" valign="top">__arima_lm_result&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="arima_8sql__in.html#aadd3c7627043810a7e650e80b7fafd52">__arima_lm</a> (integer distid, float8[] tvals, integer p, integer q, float8[] phi, float8[] theta, float8 <a class="el" href="svec__util_8sql__in.html#a546b947319c9f48237120a31929bdfd9">mean</a>, float8[] prez, float8[] prej)</td></tr>
<tr class="separator:aadd3c7627043810a7e650e80b7fafd52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa919ba0d4fe79c3b55ee60b7ad17c7de"><td class="memItemLeft" align="right" valign="top">float8[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="arima_8sql__in.html#aa919ba0d4fe79c3b55ee60b7ad17c7de">__arima_lm_result_sfunc</a> (float8[] state_data, float8[] jj, float8[] jz, float8 z2)</td></tr>
<tr class="separator:aa919ba0d4fe79c3b55ee60b7ad17c7de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76b2c9d653383c81acde8383bb29aa97"><td class="memItemLeft" align="right" valign="top">float8[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="arima_8sql__in.html#a76b2c9d653383c81acde8383bb29aa97">__arima_lm_result_pfunc</a> (float8[] state1, float8[] state2)</td></tr>
<tr class="separator:a76b2c9d653383c81acde8383bb29aa97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd8e1b6c57007a47ba64b22718d4e26f"><td class="memItemLeft" align="right" valign="top">__arima_lm_sum_result&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="arima_8sql__in.html#afd8e1b6c57007a47ba64b22718d4e26f">__arima_lm_result_ffunc</a> (float8[] state_data)</td></tr>
<tr class="separator:afd8e1b6c57007a47ba64b22718d4e26f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:addf886fb09f74d10dfd1875c641d814b"><td class="memItemLeft" align="right" valign="top">aggregate __arima_lm_sum_result&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="arima_8sql__in.html#addf886fb09f74d10dfd1875c641d814b">__arima_lm_result_agg</a> (float8[], float8[], float8)</td></tr>
<tr class="separator:addf886fb09f74d10dfd1875c641d814b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a884a57ef18bd9e1a1b4137269786bf19"><td class="memItemLeft" align="right" valign="top">float8[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="arima_8sql__in.html#a884a57ef18bd9e1a1b4137269786bf19">__arima_lm_stat_sfunc</a> (float8[] state_data, integer distid, float8[] tvals, integer p, integer q, float8[] phi, float8[] theta, float8 <a class="el" href="svec__util_8sql__in.html#a546b947319c9f48237120a31929bdfd9">mean</a>, float8 delta)</td></tr>
<tr class="separator:a884a57ef18bd9e1a1b4137269786bf19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb44a6b3bf206e966a9746dde942ddc3"><td class="memItemLeft" align="right" valign="top">__arima_lm_stat_result&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="arima_8sql__in.html#abb44a6b3bf206e966a9746dde942ddc3">__arima_lm_stat_ffunc</a> (float8[] state_data)</td></tr>
<tr class="separator:abb44a6b3bf206e966a9746dde942ddc3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9b8675db85344ac26484f8c125f57b6"><td class="memItemLeft" align="right" valign="top">aggregate __arima_lm_stat_result&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="arima_8sql__in.html#ae9b8675db85344ac26484f8c125f57b6">__arima_lm_stat_agg</a> (integer, float8[], integer, integer, float8[], float8[], float8, float8)</td></tr>
<tr class="separator:ae9b8675db85344ac26484f8c125f57b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><dl class="section date"><dt>Date</dt><dd>August 2013 </dd></dl>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="af6f5621d79045e8270e6785ed0d98ce3"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float8 [] __arima_adjust </td>
<td>(</td>
<td class="paramtype">integer&#160;</td>
<td class="paramname"><em>distid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>curr_tvals</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>prev_tvals</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer&#160;</td>
<td class="paramname"><em>p</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ab686e554403a61a5404d83e692735ada"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float8 [] __arima_diff </td>
<td>(</td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>tvals</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer&#160;</td>
<td class="paramname"><em>d</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="aadd3c7627043810a7e650e80b7fafd52"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">__arima_lm_result __arima_lm </td>
<td>(</td>
<td class="paramtype">integer&#160;</td>
<td class="paramname"><em>distid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>tvals</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer&#160;</td>
<td class="paramname"><em>p</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer&#160;</td>
<td class="paramname"><em>q</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>phi</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>theta</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8&#160;</td>
<td class="paramname"><em>mean</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>prez</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>prej</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a6a728067ea53fcb8fcbf66bbe296a783"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float8 [] __arima_lm_delta </td>
<td>(</td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>jj</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>jz</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8&#160;</td>
<td class="paramname"><em>u</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="addf886fb09f74d10dfd1875c641d814b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">aggregate __arima_lm_sum_result __arima_lm_result_agg </td>
<td>(</td>
<td class="paramtype">float8&#160;</td>
<td class="paramname">[], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8&#160;</td>
<td class="paramname">[], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8&#160;</td>
<td class="paramname">&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="afd8e1b6c57007a47ba64b22718d4e26f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">__arima_lm_sum_result __arima_lm_result_ffunc </td>
<td>(</td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>state_data</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a76b2c9d653383c81acde8383bb29aa97"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float8 [] __arima_lm_result_pfunc </td>
<td>(</td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>state1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>state2</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="aa919ba0d4fe79c3b55ee60b7ad17c7de"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float8 [] __arima_lm_result_sfunc </td>
<td>(</td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>state_data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>jj</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>jz</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8&#160;</td>
<td class="paramname"><em>z2</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ae9b8675db85344ac26484f8c125f57b6"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">aggregate __arima_lm_stat_result __arima_lm_stat_agg </td>
<td>(</td>
<td class="paramtype">integer&#160;</td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8&#160;</td>
<td class="paramname">[], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer&#160;</td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer&#160;</td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8&#160;</td>
<td class="paramname">[], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8&#160;</td>
<td class="paramname">[], </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8&#160;</td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8&#160;</td>
<td class="paramname">&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="abb44a6b3bf206e966a9746dde942ddc3"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">__arima_lm_stat_result __arima_lm_stat_ffunc </td>
<td>(</td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>state_data</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a884a57ef18bd9e1a1b4137269786bf19"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float8 [] __arima_lm_stat_sfunc </td>
<td>(</td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>state_data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer&#160;</td>
<td class="paramname"><em>distid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>tvals</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer&#160;</td>
<td class="paramname"><em>p</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer&#160;</td>
<td class="paramname"><em>q</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>phi</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>theta</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8&#160;</td>
<td class="paramname"><em>mean</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8&#160;</td>
<td class="paramname"><em>delta</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a6955c191d95e1531655cea4617caf12c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">float8 [] __arima_residual </td>
<td>(</td>
<td class="paramtype">integer&#160;</td>
<td class="paramname"><em>distid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>tvals</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer&#160;</td>
<td class="paramname"><em>p</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer&#160;</td>
<td class="paramname"><em>d</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer&#160;</td>
<td class="paramname"><em>q</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>phi</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>theta</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8&#160;</td>
<td class="paramname"><em>mean</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">float8[]&#160;</td>
<td class="paramname"><em>prez</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a52416f13110c15b6b7fe8736a4eb0202"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void arima_forecast </td>
<td>(</td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>model_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>output_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer&#160;</td>
<td class="paramname"><em>steps_ahead</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ada9e8962693411ec919953bad1ef6007"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">text arima_forecast </td>
<td>(</td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>message</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a08645edc97c591bce174964ac309a3a0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">text arima_forecast </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a9af899e0260745b75b1872159fea1281"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void arima_train </td>
<td>(</td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>input_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>output_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>timestamp_column</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>timeseries_column</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>grouping_columns</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">boolean&#160;</td>
<td class="paramname"><em>include_mean</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer[]&#160;</td>
<td class="paramname"><em>non_seasonal_orders</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>optimizer_params</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ac5b071de3f011a05b877afd6a415f993"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void arima_train </td>
<td>(</td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>input_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>output_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>timestamp_column</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>timeseries_column</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>grouping_columns</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">boolean&#160;</td>
<td class="paramname"><em>include_mean</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">integer[]&#160;</td>
<td class="paramname"><em>non_seasonal_orders</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ac4d148eefd1d5fbf4e613d5f10df4930"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void arima_train </td>
<td>(</td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>input_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>output_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>timestamp_column</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>timeseries_column</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>grouping_columns</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">boolean&#160;</td>
<td class="paramname"><em>include_mean</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a47977919832510a148d237b11688aee6"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void arima_train </td>
<td>(</td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>input_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>output_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>timestamp_column</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>timeseries_column</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>grouping_columns</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a1842458490b5b3a3a80d9663792c5e48"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void arima_train </td>
<td>(</td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>input_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>output_table</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>timestamp_column</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>timeseries_column</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a97025971eb41b5480e279e8b56d5c018"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">text arima_train </td>
<td>(</td>
<td class="paramtype">text&#160;</td>
<td class="paramname"><em>message</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a71f407786355a4226ff44a94b6c80589"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">text arima_train </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_efbcf68973d247bbf15f9eecae7f24e3.html">ports</a></li><li class="navelem"><a class="el" href="dir_a4a48839224ef8488facbffa8a397967.html">postgres</a></li><li class="navelem"><a class="el" href="dir_dc596537ad427a4d866006d1a3e1fe29.html">modules</a></li><li class="navelem"><a class="el" href="dir_8cdb0d06bc3d9fdbe366fbcc82abc3e3.html">tsa</a></li><li class="navelem"><a class="el" href="arima_8sql__in.html">arima.sql_in</a></li>
<li class="footer">Generated on Mon Jul 27 2015 20:37:44 for MADlib by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li>
</ul>
</div>
</body>
</html>