File score_processor.hpp

class ScoreProcessor
#include <score_processor.hpp>

Allows to process the scores that are stored by an IScoreVector in order to convert them into the head of a rule, represented by an IEvaluatedPrediction.

Public Functions

ScoreProcessor(std::unique_ptr<IEvaluatedPrediction> &headPtr)
Parameters:

headPtr – A reference to an unique pointer of type IEvaluatedPrediction that should be used to store the rule head that is created by the processor

void processScores(const DenseScoreVector<CompleteIndexVector> &scoreVector)

Processes the scores that are stored by a DenseScoreVector<CompleteIndexVector> in order to convert them into the head of a rule.

Parameters:

scoreVector – A reference to an object of type DenseScoreVector<CompleteIndexVector> that stores the scores to be processed

void processScores(const DenseScoreVector<PartialIndexVector> &scoreVector)

Processes the scores that are stored by a DenseScoreVector<PartialIndexVector> in order to convert them into the head of a rule.

Parameters:

scoreVector – A reference to an object of type DenseScoreVector<PartialIndexVector> that stores the scores to be processed

void processScores(const DenseBinnedScoreVector<CompleteIndexVector> &scoreVector)

Processes the scores that are stored by a DenseBinnedScoreVector<CompleteIndexVector> in order to convert them into the head of a rule.

Parameters:

scoreVector – A reference to an object of type DenseBinnedScoreVector<CompleteIndexVector> that stores the scores to be processed

void processScores(const DenseBinnedScoreVector<PartialIndexVector> &scoreVector)

Processes the scores that are stored by a DenseBinnedScoreVector<PartialIndexVector> in order to convert them into the head of a rule.

Parameters:

scoreVector – A reference to an object of type DenseBinnedScoreVector<PartialIndexVector> that stores the scores to be processed

void processScores(const IScoreVector &scoreVector)

Processes the scores that are stored by a IScoreVector in order to convert them into the head of a rule.

Parameters:

scoreVector – A reference to an object of type IScoreVector that stores the scores to be processed

Private Members

std::unique_ptr<IEvaluatedPrediction> &headPtr_