Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / API_Bilat_Graph2D / INC / model / HistogramToDensity.h
1 #ifndef HISTOGRAMTODENSITY_H_
2 #define HISTOGRAMTODENSITY_H_
3
4 #include "Histogram.h"
5
6 /*----------------------------------------------------------------------*\
7 |* Declaration *|
8 \*---------------------------------------------------------------------*/
9
10 /*--------------------------------------*\
11 |* Public *|
12 \*-------------------------------------*/
13
14 class CBI_GRAPH HistogramToDensity: public Histogram
15 {
16 public:
17 HistogramToDensity(Title title, Apparance apparance, shared_array<float> tabvalues, int nbValue,Interval intervalX, int nbrSep, float maxDensityAnalytiqueY);
18 virtual ~HistogramToDensity();
19
20 void setMaxDensityAnalytiqueY(float maxDensityAnalytiqueY);
21 float getMaxDensityAnalytiqueY() const;
22
23 /*--------------------------------------*\
24 |* Surcharge *|
25 \*-------------------------------------*/
26
27 void setValue(shared_array<float> tabvalues, int nbValue);
28 virtual Domaine computeDomaine(const Domaine& graphDomaine) const;
29
30 private:
31 float computeFactor();
32 void correctionDensity();
33 private:
34 float factor;
35 float maxDensityAnalytiqueY;
36 float maxHistogram;
37 };
38
39 #endif
40
41 /*----------------------------------------------------------------------*\
42 |* End *|
43 \*---------------------------------------------------------------------*/