10#include <calibration/CalibrationAlgorithm.h>
11#include <framework/database/DBObjPtr.h>
12#include <calibration/dbobjects/TestCalibMean.h>
Base class for calibration algorithms.
EResult
The result of calibration.
Class for accessing objects in the database.
Test class implementing calibration algorithm.
bool getGeneratePayloads() const
Getter for m_generatePayloads.
virtual ~TestDBAccessAlgorithm()
Destructor.
void setGeneratePayloads(const bool &value)
Setter for m_generatePayloads.
TestDBAccessAlgorithm()
Constructor set the prefix to TestCalibration.
void saveSameMeans()
Saves the same DB values for each run into a new localdb, otherwise we aren't creating a DB this iter...
float getAverageDistanceFromAnswer()
Grabs DBObjects from the Database and finds out the average distance from 42.
void generateNewPayloads()
Generates new payloads.
virtual EResult calibrate() override
Run algo on data.
DBObjPtr< TestCalibMean > m_dbMean
dbMean
void reduceDistancesAndSave()
Saves new DB values for each run where they are a little closer to 42.
bool m_generatePayloads
generatePayloads
Abstract base class for different kinds of events.