Used to print out the clusters of GaussianClusters. More...
#include <GaussianClusterLogger.h>
Public Member Functions | |
| GaussianClusterLogger (GaussianModelTypes::VectorToStringFun vecToStringFun, const std::string &outputSuffix="") | |
| Constructor. | |
| void | setVectorToStringFun (const GaussianModelTypes::VectorToStringFun &fun) |
| Change the used function to convert from vector to string. | |
| void | add (const std::vector< GaussianProcess > &clusters, const std::vector< GaussianModelTypes::VectorDiscrete > &discreteVectorMap, const GaussianModelTypes::VectorContinuous ¤tContinuous, const std::vector< double > &means, const std::vector< double > &vars, const GaussianModelTypes::NeighboursWeights &neighbourWeights) |
| Add nodes and edges for given continuous sample. | |
| void | flush () |
| Dump all data accumulated by add() to the sink of this logger and clear all buffers. | |
Used to print out the clusters of GaussianClusters.
The resulting graph represents each cluster as a node and the weight between clusters as edges. The graph is printed as two csv-files.
By default logging the data is disabled. It can be enabled by setting the cmake variable AUTOPAS_LOG_GAUSSIANCLUSTER to ON.
|
explicit |
Constructor.
| vecToStringFun | function to convert vectors to readable string |
| outputSuffix | Suffix for all output files produced by this class. |
| void autopas::GaussianClusterLogger::add | ( | const std::vector< GaussianProcess > & | clusters, |
| const std::vector< GaussianModelTypes::VectorDiscrete > & | discreteVectorMap, | ||
| const GaussianModelTypes::VectorContinuous & | currentContinuous, | ||
| const std::vector< double > & | means, | ||
| const std::vector< double > & | vars, | ||
| const GaussianModelTypes::NeighboursWeights & | neighbourWeights | ||
| ) |
Add nodes and edges for given continuous sample.
| clusters | all clusters |
| discreteVectorMap | map to convert index to vector |
| currentContinuous | continuous sample |
| means | predicted mean for each cluster |
| vars | predicted variance for each cluster |
| neighbourWeights | neighbours for each cluster |
| void autopas::GaussianClusterLogger::setVectorToStringFun | ( | const GaussianModelTypes::VectorToStringFun & | fun | ) |
Change the used function to convert from vector to string.
| fun | new converter |