--- /dev/null
+#ifndef HISTOGRAM_H_\r
+#define HISTOGRAM_H_\r
+\r
+#include "Polylines.h"\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |* Declaration *|\r
+ \*---------------------------------------------------------------------*/\r
+\r
+/*--------------------------------------*\\r
+ |* Public *|\r
+ \*-------------------------------------*/\r
+\r
+class CBI_GRAPH Histogram: public Polylines\r
+ {\r
+ public:\r
+ /**\r
+ * Create an histogram with nbrSep+1 bins\r
+ * @param nbrSep the number of separation.\r
+ */\r
+ Histogram(Title title, Apparance apparance, shared_array<float> tabvalues, int nbValue,Interval intervalX, int nbrSep);\r
+ virtual ~Histogram();\r
+\r
+ void setValue(shared_array<float> tabvalues, int nbValue);\r
+\r
+ static int computeNbPoint(int nbrSep);\r
+\r
+ void minMaxValues(Interval& minMax);\r
+ void setIntervalGraphX(Interval intervalX);\r
+\r
+ protected:\r
+ /**\r
+ * Compute the histogram\r
+ */\r
+ void computeHistogram();\r
+\r
+\r
+ /**\r
+ * Create the histogram with the points.\r
+ */\r
+ void computeFigure();\r
+\r
+ protected:\r
+ // Inputs\r
+ shared_array<float> tabvalues;\r
+ int nbValue;\r
+ int nbrSep;\r
+\r
+ // Tools\r
+ float* tabHistogram;\r
+ Interval intervalGraphX;\r
+ };\r
+\r
+#endif \r
+\r
+/*----------------------------------------------------------------------*\\r
+ |* End *|\r
+ \*---------------------------------------------------------------------*/\r