2#ifndef INTARNA_PREDICTORMFEENS2DHEURISTIC_H_
3#define INTARNA_PREDICTORMFEENS2DHEURISTIC_H_
Definition BasePairProbabilities.h:16
Definition IndexRange.h:20
Definition InteractionEnergy.h:20
Definition OutputHandler.h:22
Definition PredictionTracker.h:15
Definition PredictorMfeEns2dHeuristic.h:30
PredictorMfeEns2dHeuristic(const InteractionEnergy &energy, OutputHandler &output, PredictionTracker *predTracker, BasePairProbabilities *pairProbabilities=nullptr)
Matrix< Z_type > probabilityFlow
Complete candidate weight flowing into each retained continuation.
Definition PredictorMfeEns2dHeuristic.h:93
Z2dMatrix hybridZ
energy of all interaction hybrids starting in i1,i2
Definition PredictorMfeEns2dHeuristic.h:83
Z_type probabilityDenominator
Independently accumulated objective, required to agree exactly with Zall.
Definition PredictorMfeEns2dHeuristic.h:97
InteractionEnergyIdxOffset energy
access to the interaction energy handler of the super class
Definition Predictor.h:85
void commitProbabilityRegion()
Matrix< ProbabilityContinuation > probabilityContinuation
Allocated only for probability output; selected continuations form a DAG.
Definition PredictorMfeEns2dHeuristic.h:91
OutputHandler & output
access to the output handler of the super class
Definition Predictor.h:88
void recordProbabilityCandidate(size_t i1, size_t j1, size_t i2, size_t j2, Z_type hybrid, const ProbabilityContinuation &continuation)
virtual void fillHybridZ()
void predictRegionHeuristic(const IndexRange &r1, const IndexRange &r2)
virtual ~PredictorMfeEns2dHeuristic() override
virtual void predict(const IndexRange &r1=IndexRange(0, RnaSequence::lastPos), const IndexRange &r2=IndexRange(0, RnaSequence::lastPos)) override
Matrix< Z_type > probabilityMass
Numerators in local target/reversed-query coordinates until region commit.
Definition PredictorMfeEns2dHeuristic.h:95
Matrix< BestInteractionZ > Z2dMatrix
matrix type to hold the mfe energies and boundaries for interaction site starts
Definition PredictorMfeEns2dHeuristic.h:35
Definition PredictorMfeEns2d.h:21
BasePairProbabilities * pairProbabilities
optional sequence-pair owner, never deleted or finalized by this predictor
Definition PredictorMfeEns2d.h:68
InteractionEnergyIdxOffset energy
access to the interaction energy handler of the super class
Definition Predictor.h:85
OutputHandler & output
access to the output handler of the super class
Definition Predictor.h:88
PredictionTracker * predTracker
access to the prediction tracker of the super class
Definition Predictor.h:91
std::pair< IndexRangeList, IndexRangeList > reportedInteractions
Definition PredictorMfe.h:136
static const size_t lastPos
Definition RnaSequence.h:57
Definition Accessibility.h:13
double Z_type
type for probabilities, RT and Boltzmann values
Definition general.h:88
The selected chain owns its first pair and, optionally, its next stack pair.
Definition PredictorMfeEns2dHeuristic.h:86
size_t next1
Definition PredictorMfeEns2dHeuristic.h:87
bool extraPair
Definition PredictorMfeEns2dHeuristic.h:88
size_t next2
Definition PredictorMfeEns2dHeuristic.h:87