AutoPas  3.0.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
autopas::GaussianClusterLogger Class Reference

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 &currentContinuous, 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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GaussianClusterLogger()

autopas::GaussianClusterLogger::GaussianClusterLogger ( GaussianModelTypes::VectorToStringFun  vecToStringFun,
const std::string &  outputSuffix = "" 
)
explicit

Constructor.

Parameters
vecToStringFunfunction to convert vectors to readable string
outputSuffixSuffix for all output files produced by this class.

Member Function Documentation

◆ add()

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.

Parameters
clustersall clusters
discreteVectorMapmap to convert index to vector
currentContinuouscontinuous sample
meanspredicted mean for each cluster
varspredicted variance for each cluster
neighbourWeightsneighbours for each cluster

◆ setVectorToStringFun()

void autopas::GaussianClusterLogger::setVectorToStringFun ( const GaussianModelTypes::VectorToStringFun fun)

Change the used function to convert from vector to string.

Parameters
funnew converter

The documentation for this class was generated from the following files: