CrystalFp
 All Classes Namespaces Files Functions Enumerations Enumerator Pages
CrystalFpScatterplot.h
Go to the documentation of this file.
1 
2 
3 
4 #ifndef CRYSTALFPSCATTERPLOT_H
5 #define CRYSTALFPSCATTERPLOT_H
6 
7 #include "CrystalFp.h"
8 namespace cfp
9 {
10 
43 {
44 public:
48 
52 
53 
70  void setNamedParam(const std::string& aName, const std::string& aValue);
71 
79  size_t initScatterplot(const CrystalFp *aCfp);
80 
83  enum ValueType
84  {
90  };
91 
97  void getPoints(float* aCoords) const;
98 
107  void getValues(float* aValues, ValueType aValueType) const;
108 
115  float stepScatterplot(float aTimestep);
116 
122  void perturbPositions(void);
123 
127  {
131  };
132 
142  size_t initDiagnostic(DiagnosticType aDiagnostic);
143 
149  void getDiagnosticValues(float* aCoords, float* aValues) const;
150 
154  void dumpParams(void) const;
155 
156 private:
157  void colorByGroup(size_t aNumPoints, float *aResult) const;
158  float computeCost(void) const;
159 
160 private:
161  const CrystalFp* mCrystalFp;
162 
163 private:
164  struct CrystalFpScatterplotImpl;
165  struct CrystalFpScatterplotImpl* mPimpl;
166 };
167 
168 }
169 #endif
170