/*****************************************************************************
- * RRDtool 1.2.99907080300 Copyright by Tobi Oetiker, 1997-2007
+ * RRDtool 1.3.2 Copyright by Tobi Oetiker, 1997-2008
*****************************************************************************
* rrd_hw.c : Support for Holt-Winters Smoothing/ Aberrant Behavior Detection
*****************************************************************************
* Initial version by Jake Brutlag, WebTV Networks, 5/1/00
*****************************************************************************/
+#include <stdlib.h>
+
#include "rrd_tool.h"
#include "rrd_hw.h"
#include "rrd_hw_math.h"
hw_multiplicative_init_seasonality,
hw_calculate_seasonal_deviation,
hw_init_seasonal_deviation,
- 1.0 // identity value
+ 1.0 /* identity value */
};
static hw_functions_t hw_additive_functions = {
hw_additive_init_seasonality,
hw_calculate_seasonal_deviation,
hw_init_seasonal_deviation,
- 0.0 // identity value
+ 0.0 /* identity value */
};
rrd->cdp_prep[cdp_idx].scratch[CDP_scratch_idx].u_val = pdp_val;