Main Page | Class Hierarchy | Class List | File List | Class Members

RegionPrediction.hpp

00001 
00002 // Copyright (c) 2003, The Institute for Genomic Research (TIGR), Rockville,
00003 // Maryland, U.S.A.  All rights reserved.
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 }