00001
00002
00003
00005 EvScores& RegionPrediction::getScores(dsu::Strand_t strnd) {
00006 int idx = getIdx(strnd);
00007 return _score[idx];
00008 }
00009
00010 const EvScores& RegionPrediction::getScores(dsu::Strand_t strnd) const {
00011 int idx = getIdx(strnd);
00012 return _score[idx];
00013 }
00014
00015 const AnnotationScore& RegionPrediction::getScore(unsigned i, dsu::Strand_t strnd) const {
00016 int idx = getIdx(strnd);
00017 const EvScores& scores = _score[idx];
00018 assert(i < EvScores::eNumBnd);
00019 return scores[i];
00020 }
00021
00022
00023 int RegionPrediction::getIdx(dsu::Strand_t strnd) const {
00024 assert(strnd == dsu::eNeg || strnd == dsu::ePos );
00025 int intStrnd = static_cast<int>(strnd);
00026 return intStrnd;
00027 }