anchor.diff:  ifdef::env-github[]
   image::../../../../assets/img/docs/components/datamining/hawkular-architecture.png[Architecture, align="center"]
   endif::[]
  +
  +== Prerequisites
  +Hawkular Data Mining Git repository is hosted on link:https://github.com/hawkular/hawkular-datamining.git[GitHub].
  +To build the repository Maven and Java 8 are needed.
  +
  +== Useful Links
  +- Source code link:https://github.com/hawkular/hawkular-datamining.git[Github]
  +- Data Mining integrated into link:https://github.com/hawkular/hawkular/pull/876[Hawkular]
  +- REST API link:../../rest/rest-datamining.html[documentation page]
  
positive.code:  - Time series differencing
   - Automatic period identification based on ACF
  
  == Prerequisites
  
  Hawkular Data Mining Git repository is hosted on link:https://github.com/hawkular/hawkular-datamining.git[GitHub].
  To build the repository Maven and Java 8 are needed.
  
  .Data Mining main modules
  |===
  |Artifact | Description
  
  |hawkular-datamining-forecast | Lightweight library for time series modeling and forecasting.
  |hawkular-datamining-rest | Web archive for standalone usage without Hawkular.
  |hawkular-datamining-dist | Distribution web archive with hawkular integration code designed to be deployed with Hawkular.
  
  |===
  
  == Data Mining in Hawkular
  When Data Mining is deployed in Hawkular, predictions can be enabled by creating relationships:
  
   - from tenant to tenant for forecasting all metrics of given tenant
   - from tenant to metric type for forecasting all metrics of given type
   - from tenant to metric for forecasting given metric
  
  Following diagram depicts the interaction with other modules. Numbers denotes order of metric data flow from agent to
  Data Mining and Metrics module.
  
  [[architecture]]
  .Data Mining interaction with other Hawkular modules
  
negative.code: 
  == Introduction
  Data Mining currently offers time series prediction engine. This engine can be used for alert prediction or
  predictive charts in a user interface. Project is decomposed into several modules for ability of using only time series
  models or even web application without Hawkular integration code.
  
  The most important Hawkular Data Mining modules:
  
  .Data Mining main modules
  |===
  |Artifact | Description
  
  |hawkular-datamining-forecast | Lightweight library for time series modeling and forecasting.
  |hawkular-datamining-rest | Web archive for standalone usage without Hawkular.
  |hawkular-datamining-dist | Web archive with Hawkular integration code designed to be deployed in Hawkular.
  |===
  
  In standalone distribution, metric data has to be pushed to Data Mining, however easy customization can be made to
  use any metrics storage.
  
  == Forecast module
  
  The forecast artifact is lightweight library for time series modelling and forecasting. It can be easy used
  in any java project. Following time series models and statistical functions are implemented:
  
  === Time series models
   - Simple exponential smoothing
  