Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 54cac1c2268db633d66eeff1b4faa585 > files > 445

frepple-doc-0.8.1-3.fc15.noarch.rpm

<!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"/>
<title>C++ API frePPLe: module_forecast::Forecast::SingleExponential Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="../styles.css" rel="stylesheet"  type="text/css">
</head>
<body>
<div id="container">

<div id="menubar"> 
<div id="logo" align="center">
<br/><img src='../frepple.bmp' alt="frepple" /><br/>
<a href='http://www.frepple.com/'>
<strong>a Free<br/>Production Planning<br/>Library</strong>
</a>
</div>
<div id="menu">
<br/>
<h3><a href='../Main/HomePage.html'>Main</a></h3>
<h3><a href='../UI/Main.html'>User Manual</a></h3>
<h3><a href='../Tutorial/Main.html'>Tutorial</a></h3>
<h3><a href='../Frepple/Main.html'>Reference Manual</a></h3>
<h3><a href='../Main/FAQ.html'>FAQ</a></h3>
<h3><a href='index.html'>C++ API</a></h3>
<br/>
</div>  
</div>

<div id="content">
<br/>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="a00258.html">module_forecast</a>::<a class="el" href="a00072.html">Forecast</a>::<a class="el" href="a00169.html">SingleExponential</a>
  </div>
</div>
<div class="contents">
<h1>module_forecast::Forecast::SingleExponential Class Reference</h1><!-- doxytag: class="module_forecast::Forecast::SingleExponential" --><!-- doxytag: inherits="module_forecast::Forecast::ForecastMethod" -->
<p>A class to perform single exponential smoothing on a time series.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00204_source.html">forecast.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for module_forecast::Forecast::SingleExponential:</div>
<div class="dynsection">
<div class="center"><img src="a00679.png" border="0" usemap="#module__forecast_1_1_forecast_1_1_single_exponential_inherit__map" alt="Inheritance graph"/></div>
<map name="module__forecast_1_1_forecast_1_1_single_exponential_inherit__map" id="module__forecast_1_1_forecast_1_1_single_exponential_inherit__map">
<area shape="rect" id="node2" href="a00074.html" title="Abstract base class for all forecasting methods." alt="" coords="11,6,288,34"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="a00680.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00169.html#a794f9e1de08be94cad1df91e5090853d">applyForecast</a> (<a class="el" href="a00072.html">Forecast</a> *, const <a class="el" href="a00049.html">Date</a>[], unsigned int, bool)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00169.html#af3071583d861c5cb288b57076bbaac7e">generateForecast</a> (<a class="el" href="a00072.html">Forecast</a> *fcst, const double history[], unsigned int count, const double weight[], bool debug)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00169.html#affbb76afc2986d615477aab22f8e0c7e">getName</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00169.html#ad4fd62f76f624286d5c110bb2733fb3b">SingleExponential</a> (double a=initial_alfa)</td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00169.html#a556ca83c2913dc5e8116122c58466bb4">setInitialAlfa</a> (double x)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00169.html#a1eabb85c0a7d44b67c178e3092d3d0f2">setMaxAlfa</a> (double x)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00169.html#ad7957e17adbf71ef6535a1a87e20a75d">setMinAlfa</a> (double x)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>A class to perform single exponential smoothing on a time series. </p>

<p>Definition at line <a class="el" href="a00204_source.html#l00362">362</a> of file <a class="el" href="a00204_source.html">forecast.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ad4fd62f76f624286d5c110bb2733fb3b"></a><!-- doxytag: member="module_forecast::Forecast::SingleExponential::SingleExponential" ref="ad4fd62f76f624286d5c110bb2733fb3b" args="(double a=initial_alfa)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">module_forecast::Forecast::SingleExponential::SingleExponential </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>a</em> = <code>initial_alfa</code></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor. </p>

<p>Definition at line <a class="el" href="a00204_source.html#l00390">390</a> of file <a class="el" href="a00204_source.html">forecast.h</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a794f9e1de08be94cad1df91e5090853d"></a><!-- doxytag: member="module_forecast::Forecast::SingleExponential::applyForecast" ref="a794f9e1de08be94cad1df91e5090853d" args="(Forecast *, const Date[], unsigned int, bool)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void module_forecast::Forecast::SingleExponential::applyForecast </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00072.html">Forecast</a> *&nbsp;</td>
          <td class="paramname"> <em>forecast</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00049.html">Date</a>&nbsp;</td>
          <td class="paramname"> <em>buckets</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>bucketcount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>debug</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p><a class="el" href="a00072.html" title="This class represents a bucketized demand signal.">Forecast</a> value updating. </p>

<p>Implements <a class="el" href="a00074.html#a5b6313466ac20ca0e9a74139e868f04a">module_forecast::Forecast::ForecastMethod</a>.</p>

<p>Definition at line <a class="el" href="a00251_source.html#l00287">287</a> of file <a class="el" href="a00251_source.html">timeseries.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="af3071583d861c5cb288b57076bbaac7e"></a><!-- doxytag: member="module_forecast::Forecast::SingleExponential::generateForecast" ref="af3071583d861c5cb288b57076bbaac7e" args="(Forecast *fcst, const double history[], unsigned int count, const double weight[], bool debug)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double module_forecast::Forecast::SingleExponential::generateForecast </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00072.html">Forecast</a> *&nbsp;</td>
          <td class="paramname"> <em>fcst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double&nbsp;</td>
          <td class="paramname"> <em>history</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&nbsp;</td>
          <td class="paramname"> <em>count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double&nbsp;</td>
          <td class="paramname"> <em>weight</em>[], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>debug</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p><a class="el" href="a00072.html" title="This class represents a bucketized demand signal.">Forecast</a> evaluation. </p>

<p>Implements <a class="el" href="a00074.html#a72078544ba513ac4d9bae0ef64045480">module_forecast::Forecast::ForecastMethod</a>.</p>

<p>Definition at line <a class="el" href="a00251_source.html#l00196">196</a> of file <a class="el" href="a00251_source.html">timeseries.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="affbb76afc2986d615477aab22f8e0c7e"></a><!-- doxytag: member="module_forecast::Forecast::SingleExponential::getName" ref="affbb76afc2986d615477aab22f8e0c7e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string module_forecast::Forecast::SingleExponential::getName </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The name of the method. </p>

<p>Implements <a class="el" href="a00074.html#a5dff95401a41f796fbc243f4996afd27">module_forecast::Forecast::ForecastMethod</a>.</p>

<p>Definition at line <a class="el" href="a00204_source.html#l00427">427</a> of file <a class="el" href="a00204_source.html">forecast.h</a>.</p>

</div>
</div>
<a class="anchor" id="a556ca83c2913dc5e8116122c58466bb4"></a><!-- doxytag: member="module_forecast::Forecast::SingleExponential::setInitialAlfa" ref="a556ca83c2913dc5e8116122c58466bb4" args="(double x)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void module_forecast::Forecast::SingleExponential::setInitialAlfa </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>x</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Update the initial value for the alfa parameter. </p>

<p>Definition at line <a class="el" href="a00204_source.html#l00404">404</a> of file <a class="el" href="a00204_source.html">forecast.h</a>.</p>

</div>
</div>
<a class="anchor" id="a1eabb85c0a7d44b67c178e3092d3d0f2"></a><!-- doxytag: member="module_forecast::Forecast::SingleExponential::setMaxAlfa" ref="a1eabb85c0a7d44b67c178e3092d3d0f2" args="(double x)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void module_forecast::Forecast::SingleExponential::setMaxAlfa </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>x</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Update the maximum value for the alfa parameter. </p>

<p>Definition at line <a class="el" href="a00204_source.html#l00420">420</a> of file <a class="el" href="a00204_source.html">forecast.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad7957e17adbf71ef6535a1a87e20a75d"></a><!-- doxytag: member="module_forecast::Forecast::SingleExponential::setMinAlfa" ref="ad7957e17adbf71ef6535a1a87e20a75d" args="(double x)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void module_forecast::Forecast::SingleExponential::setMinAlfa </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>x</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Update the minimum value for the alfa parameter. </p>

<p>Definition at line <a class="el" href="a00204_source.html#l00412">412</a> of file <a class="el" href="a00204_source.html">forecast.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a00204_source.html">forecast.h</a></li>
<li><a class="el" href="a00251_source.html">timeseries.cpp</a></li>
</ul>
</div>
<hr size="1"/><address style="align: right;"><small>Documentation generated for frePPLe by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"/></a></small></address>
</div>
</div>
</body>
</html>