Forge
histogram.h
Go to the documentation of this file.
1 /*******************************************************
2  * Copyright (c) 2015-2019, ArrayFire
3  * All rights reserved.
4  *
5  * This file is distributed under 3-clause BSD license.
6  * The complete license agreement can be obtained at:
7  * http://arrayfire.com/licenses/BSD-3-Clause
8  ********************************************************/
9 
10 #pragma once
11 
12 #include <fg/defines.h>
13 
14 namespace internal
15 {
16 class _Histogram;
17 }
18 
19 namespace fg
20 {
21 
27 class Histogram {
28  private:
29  internal::_Histogram* value;
30 
31  public:
39  FGAPI Histogram(unsigned pNBins, dtype pDataType);
40 
46  FGAPI Histogram(const Histogram& other);
47 
51  FGAPI ~Histogram();
52 
58  FGAPI void setBarColor(fg::Color col);
59 
60 
68  FGAPI void setBarColor(float pRed, float pGreen, float pBlue);
69 
78  FGAPI void setAxesLimits(float pXmax, float pXmin, float pYmax, float pYmin);
79 
86  FGAPI void setAxesTitles(const char* pXTitle, const char* pYTitle);
87 
93  FGAPI float xmax() const;
94 
100  FGAPI float xmin() const;
101 
107  FGAPI float ymax() const;
108 
114  FGAPI float ymin() const;
115 
121  FGAPI unsigned vbo() const;
122 
128  FGAPI unsigned size() const;
129 
133  FGAPI internal::_Histogram* get() const;
134 };
135 
136 }
Bar graph to display data frequencey.
Definition: histogram.h:27
Definition: CPUCopy.hpp:13
#define FGAPI
Definition: defines.h:32
dtype
Definition: defines.h:136
Definition: font.h:13
Color
Definition: defines.h:125