2#ifndef INTARNA_PREDICTORMFE_H_
3#define INTARNA_PREDICTORMFE_H_
13#include <boost/unordered_map.hpp>
32 template <
class ValueType >
42 BestInteraction(
const ValueType
val=(std::numeric_limits<ValueType>::has_infinity ? std::numeric_limits<ValueType>::infinity() : std::numeric_limits<ValueType>::max())
99 typedef boost::unordered_map< Interaction::BasePair, BestInteractionE, Interaction::BasePair::Hash >
HashIdx2E;
128 const size_t i2,
const size_t j2 )
const;
145 ,
const size_t i2,
const size_t j2
147 ,
const bool isHybridE
191 ,
const size_t i2,
const size_t j2
Definition InteractionEnergy.h:20
Definition Interaction.h:28
Definition OutputHandler.h:20
Definition PredictionTracker.h:15
Definition PredictorMfe.h:33
size_t j1
right end of the interaction in seq1
Definition PredictorMfe.h:51
BestInteraction(const ValueType val=(std::numeric_limits< ValueType >::has_infinity ? std::numeric_limits< ValueType >::infinity() :std::numeric_limits< ValueType >::max()), const size_t j1=RnaSequence::lastPos, const size_t j2=RnaSequence::lastPos)
Definition PredictorMfe.h:42
ValueType val
value to be stored for the interaction, e.g. energy
Definition PredictorMfe.h:49
size_t j2
right end of the interaction in seq2
Definition PredictorMfe.h:53
Definition PredictorMfe.h:24
virtual void traceBack(Interaction &interaction)=0
std::pair< IndexRangeList, IndexRangeList > reportedInteractions
Definition PredictorMfe.h:108
PredictorMfe(const InteractionEnergy &energy, OutputHandler &output, PredictionTracker *predTracker)
PredictionTracker * predTracker
access to the prediction tracker of the super class
Definition Predictor.h:91
virtual void getNextBest(Interaction &curBest)
std::list< Interaction > InteractionList
list of interactions
Definition PredictorMfe.h:93
InteractionList mfeInteractions
mfe interaction boundaries
Definition PredictorMfe.h:96
InteractionEnergyIdxOffset energy
access to the interaction energy handler of the super class
Definition Predictor.h:85
BestInteraction< E_type > BestInteractionE
BestInteraction that stores an energy value.
Definition PredictorMfe.h:57
OutputHandler & output
access to the output handler of the super class
Definition Predictor.h:88
HashIdx2E mfe4leftEnd
Definition PredictorMfe.h:103
boost::unordered_map< Interaction::BasePair, BestInteractionE, Interaction::BasePair::Hash > HashIdx2E
hash to map index pairs to BestInteractionE entries
Definition PredictorMfe.h:99
bool isValidOutputSite(const size_t i1, const size_t j1, const size_t i2, const size_t j2) const
virtual void reportOptima()
virtual void updateOptima(const size_t i1, const size_t j1, const size_t i2, const size_t j2, const E_type energy, const bool isHybridE, const bool incrementZall)
virtual void updateMfe4leftEnd(const size_t i1, const size_t j1, const size_t i2, const size_t j2, const Interaction &curInteraction)
BestInteraction< Z_type > BestInteractionZ
BestInteraction that stores a partition function value.
Definition PredictorMfe.h:59
virtual void initOptima()
Definition Predictor.h:21
void incrementZall(const Z_type partZ)
Definition Predictor.h:220
PredictionTracker * predTracker
prediction tracker to be used
Definition Predictor.h:91
InteractionEnergyIdxOffset energy
energy computation handler
Definition Predictor.h:85
OutputHandler & output
interaction output handler
Definition Predictor.h:88
Definition RnaSequence.h:29
Definition Accessibility.h:13
int E_type
type for energy values (energy + accessibility [ED]) (internally)
Definition general.h:78