NCBI C++ ToolKit
Public Member Functions | Public Attributes | List of all members
SAlignmentScoringModel::odds Struct Reference

Search Toolkit Book for SAlignmentScoringModel::odds

Public Member Functions

 odds (double pos_=0.0, double neg_=0.0)
 
void operator+= (double x)
 
void operator+= (const odds o)
 
double logodds (int a=2) const
 
string AsString () const
 

Public Attributes

double pos
 
double neg
 

Detailed Description

Definition at line 97 of file best_placement.cpp.

Constructor & Destructor Documentation

◆ odds()

SAlignmentScoringModel::odds::odds ( double  pos_ = 0.0,
double  neg_ = 0.0 
)
inline

Definition at line 101 of file best_placement.cpp.

Member Function Documentation

◆ AsString()

string SAlignmentScoringModel::odds::AsString ( void  ) const
inline

Definition at line 114 of file best_placement.cpp.

References neg, and pos.

Referenced by SAlignmentScoringModel::GetScore(), and logodds().

◆ logodds()

double SAlignmentScoringModel::odds::logodds ( int  a = 2) const
inline

Definition at line 106 of file best_placement.cpp.

References a, AsString(), log, NCBI_USER_THROW, neg, and pos.

Referenced by SAlignmentScoringModel::GetScore().

◆ operator+=() [1/2]

void SAlignmentScoringModel::odds::operator+= ( const odds  o)
inline

Definition at line 104 of file best_placement.cpp.

References neg, and pos.

◆ operator+=() [2/2]

void SAlignmentScoringModel::odds::operator+= ( double  x)
inline

Definition at line 103 of file best_placement.cpp.

References fabs, neg, and pos.

Member Data Documentation

◆ neg

double SAlignmentScoringModel::odds::neg

◆ pos

double SAlignmentScoringModel::odds::pos

The documentation for this struct was generated from the following file:
Modified on Fri Sep 20 14:58:02 2024 by modify_doxy.py rev. 669887