NCBI C++ ToolKit
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
LocalMaxStat Class Reference

Search Toolkit Book for LocalMaxStat

#include "njn_localmaxstat.hpp"
(Private to src/algo/blast/gumbel_params.)

+ Inheritance diagram for LocalMaxStat:
+ Collaboration diagram for LocalMaxStat:

Public Member Functions

 LocalMaxStat (size_t dimension_=0, const Int4 *score_=0, const double *prob_=0)
 
 LocalMaxStat (const LocalMaxStat &localMaxStat_)
 
 ~LocalMaxStat ()
 
 operator bool () const
 
LocalMaxStatoperator= (const LocalMaxStat &localMaxStat_)
 
void copy (size_t dimension_, const Int4 *score_, const double *prob_)
 
void copy (const LocalMaxStat &localMaxStat_)
 
void copy (size_t dimension_, const Int4 *score_, const double *prob_, double lambda_, double k_, double c_, double thetaMin_, double rMin_, Int4 delta_, double thetaMinusDelta_, double mu_, double sigma_, double muAssoc_, double sigmaAssoc_, double meanDLE_, bool terminated_=false)
 
std::ostream & out (std::ostream &ostr_) const
 
double getR (double theta_) const
 
double getA () const
 
double getAlpha () const
 
size_t getDimension () const
 
const Int4getScore () const
 
const double * getProb () const
 
double getLambda () const
 
double getK () const
 
double getC () const
 
double getThetaMin () const
 
double getRMin () const
 
Int4 getDelta () const
 
double getThetaMinusDelta () const
 
double getMu () const
 
double getSigma () const
 
double getMuAssoc () const
 
double getSigmaAssoc () const
 
double getMeanWDLE () const
 
bool getTerminated () const
 

Static Public Member Functions

static void setTime (double time_=0.0)
 
static double getTime ()
 

Private Member Functions

void init (size_t dimension_)
 
void free ()
 
void clear ()
 
void dynProgCalc ()
 

Private Attributes

size_t d_dimension
 
Int4d_score_p
 
double * d_prob_p
 
double d_lambda
 
double d_k
 
double d_c
 
double d_thetaMin
 
double d_rMin
 
Int4 d_delta
 
double d_thetaMinusDelta
 
double d_mu
 
double d_sigma
 
double d_muAssoc
 
double d_sigmaAssoc
 
double d_meanWDLE
 
bool d_terminated
 

Static Private Attributes

static double s_time = 0.0
 

Detailed Description

Definition at line 52 of file njn_localmaxstat.hpp.

Constructor & Destructor Documentation

◆ LocalMaxStat() [1/2]

LocalMaxStat::LocalMaxStat ( size_t  dimension_ = 0,
const Int4 score_ = 0,
const double *  prob_ = 0 
)
inline

Definition at line 69 of file njn_localmaxstat.hpp.

References copy().

◆ LocalMaxStat() [2/2]

LocalMaxStat::LocalMaxStat ( const LocalMaxStat localMaxStat_)
inline

Definition at line 82 of file njn_localmaxstat.hpp.

References copy().

◆ ~LocalMaxStat()

LocalMaxStat::~LocalMaxStat ( )
inline

Definition at line 92 of file njn_localmaxstat.hpp.

References free().

Member Function Documentation

◆ clear()

void LocalMaxStat::clear ( void  )
private

◆ copy() [1/3]

void LocalMaxStat::copy ( const LocalMaxStat localMaxStat_)
inline

◆ copy() [2/3]

void LocalMaxStat::copy ( size_t  dimension_,
const Int4 score_,
const double *  prob_ 
)

Definition at line 136 of file njn_localmaxstat.cpp.

Referenced by LocalMaxStatMatrix::copy().

◆ copy() [3/3]

void LocalMaxStat::copy ( size_t  dimension_,
const Int4 score_,
const double *  prob_,
double  lambda_,
double  k_,
double  c_,
double  thetaMin_,
double  rMin_,
Int4  delta_,
double  thetaMinusDelta_,
double  mu_,
double  sigma_,
double  muAssoc_,
double  sigmaAssoc_,
double  meanDLE_,
bool  terminated_ = false 
)

◆ dynProgCalc()

void LocalMaxStat::dynProgCalc ( )
private

◆ free()

void LocalMaxStat::free ( )
private

Definition at line 66 of file njn_localmaxstat.cpp.

References d_dimension, d_prob_p, d_score_p, and getDimension().

Referenced by clear(), copy(), and LocalMaxStatMatrix::getR().

◆ getA()

double LocalMaxStat::getA ( ) const
inline

Definition at line 142 of file njn_localmaxstat.hpp.

◆ getAlpha()

double LocalMaxStat::getAlpha ( ) const
inline

Definition at line 144 of file njn_localmaxstat.hpp.

◆ getC()

double LocalMaxStat::getC ( ) const
inline

Definition at line 151 of file njn_localmaxstat.hpp.

Referenced by copy().

◆ getDelta()

Int4 LocalMaxStat::getDelta ( ) const
inline

Definition at line 154 of file njn_localmaxstat.hpp.

Referenced by copy().

◆ getDimension()

size_t LocalMaxStat::getDimension ( ) const
inline

Definition at line 146 of file njn_localmaxstat.hpp.

Referenced by copy(), dynProgCalc(), free(), and LocalMaxStatMatrix::getR().

◆ getK()

double LocalMaxStat::getK ( ) const
inline

Definition at line 150 of file njn_localmaxstat.hpp.

Referenced by copy(), and dynProgCalc().

◆ getLambda()

double LocalMaxStat::getLambda ( ) const
inline

Definition at line 149 of file njn_localmaxstat.hpp.

Referenced by copy(), dynProgCalc(), and LocalMaxStatMatrix::getR().

◆ getMeanWDLE()

double LocalMaxStat::getMeanWDLE ( ) const
inline

Definition at line 160 of file njn_localmaxstat.hpp.

Referenced by copy(), and dynProgCalc().

◆ getMu()

double LocalMaxStat::getMu ( ) const
inline

Definition at line 156 of file njn_localmaxstat.hpp.

Referenced by copy(), dynProgCalc(), and LocalMaxStatMatrix::getR().

◆ getMuAssoc()

double LocalMaxStat::getMuAssoc ( ) const
inline

Definition at line 158 of file njn_localmaxstat.hpp.

Referenced by copy(), dynProgCalc(), and LocalMaxStatMatrix::getR().

◆ getProb()

const double* LocalMaxStat::getProb ( ) const
inline

Definition at line 148 of file njn_localmaxstat.hpp.

Referenced by copy(), dynProgCalc(), and LocalMaxStatMatrix::getR().

◆ getR()

double LocalMaxStat::getR ( double  theta_) const

Definition at line 196 of file njn_localmaxstat.cpp.

References d_dimension, d_prob_p, d_score_p, and r().

◆ getRMin()

double LocalMaxStat::getRMin ( ) const
inline

Definition at line 153 of file njn_localmaxstat.hpp.

Referenced by copy(), and dynProgCalc().

◆ getScore()

const Int4* LocalMaxStat::getScore ( ) const
inline

Definition at line 147 of file njn_localmaxstat.hpp.

Referenced by copy(), dynProgCalc(), and LocalMaxStatMatrix::getR().

◆ getSigma()

double LocalMaxStat::getSigma ( ) const
inline

Definition at line 157 of file njn_localmaxstat.hpp.

Referenced by copy(), and LocalMaxStatMatrix::getR().

◆ getSigmaAssoc()

double LocalMaxStat::getSigmaAssoc ( ) const
inline

Definition at line 159 of file njn_localmaxstat.hpp.

Referenced by copy().

◆ getTerminated()

bool LocalMaxStat::getTerminated ( ) const
inline

Definition at line 161 of file njn_localmaxstat.hpp.

Referenced by copy(), and dynProgCalc().

◆ getThetaMin()

double LocalMaxStat::getThetaMin ( ) const
inline

Definition at line 152 of file njn_localmaxstat.hpp.

Referenced by copy(), dynProgCalc(), and LocalMaxStatMatrix::getR().

◆ getThetaMinusDelta()

double LocalMaxStat::getThetaMinusDelta ( ) const
inline

Definition at line 155 of file njn_localmaxstat.hpp.

Referenced by copy(), and dynProgCalc().

◆ getTime()

static double LocalMaxStat::getTime ( )
inlinestatic

Definition at line 64 of file njn_localmaxstat.hpp.

Referenced by dynProgCalc().

◆ init()

void LocalMaxStat::init ( size_t  dimension_)
private

Definition at line 55 of file njn_localmaxstat.cpp.

References d_dimension, d_prob_p, and d_score_p.

Referenced by clear(), copy(), and LocalMaxStatMatrix::getR().

◆ operator bool()

LocalMaxStat::operator bool ( void  ) const
inline

Definition at line 94 of file njn_localmaxstat.hpp.

◆ operator=()

LocalMaxStat& LocalMaxStat::operator= ( const LocalMaxStat localMaxStat_)
inline

Definition at line 99 of file njn_localmaxstat.hpp.

References copy().

◆ out()

std::ostream& LocalMaxStat::out ( std::ostream &  ostr_) const
inline

Definition at line 138 of file njn_localmaxstat.hpp.

◆ setTime()

static void LocalMaxStat::setTime ( double  time_ = 0.0)
inlinestatic

Definition at line 63 of file njn_localmaxstat.hpp.

References assert.

Member Data Documentation

◆ d_c

double LocalMaxStat::d_c
private

Definition at line 173 of file njn_localmaxstat.hpp.

Referenced by clear(), copy(), and dynProgCalc().

◆ d_delta

Int4 LocalMaxStat::d_delta
private

Definition at line 176 of file njn_localmaxstat.hpp.

Referenced by clear(), copy(), and LocalMaxStatMatrix::getR().

◆ d_dimension

size_t LocalMaxStat::d_dimension
private

Definition at line 166 of file njn_localmaxstat.hpp.

Referenced by free(), getR(), and init().

◆ d_k

double LocalMaxStat::d_k
private

Definition at line 172 of file njn_localmaxstat.hpp.

Referenced by clear(), copy(), and dynProgCalc().

◆ d_lambda

double LocalMaxStat::d_lambda
private

Definition at line 171 of file njn_localmaxstat.hpp.

Referenced by clear(), copy(), and LocalMaxStatMatrix::getR().

◆ d_meanWDLE

double LocalMaxStat::d_meanWDLE
private

Definition at line 182 of file njn_localmaxstat.hpp.

Referenced by clear(), copy(), and dynProgCalc().

◆ d_mu

double LocalMaxStat::d_mu
private

Definition at line 178 of file njn_localmaxstat.hpp.

Referenced by clear(), copy(), and LocalMaxStatMatrix::getR().

◆ d_muAssoc

double LocalMaxStat::d_muAssoc
private

Definition at line 180 of file njn_localmaxstat.hpp.

Referenced by clear(), copy(), and LocalMaxStatMatrix::getR().

◆ d_prob_p

double* LocalMaxStat::d_prob_p
private

Definition at line 168 of file njn_localmaxstat.hpp.

Referenced by copy(), free(), getR(), LocalMaxStatMatrix::getR(), and init().

◆ d_rMin

double LocalMaxStat::d_rMin
private

Definition at line 175 of file njn_localmaxstat.hpp.

Referenced by clear(), copy(), and LocalMaxStatMatrix::getR().

◆ d_score_p

Int4* LocalMaxStat::d_score_p
private

Definition at line 167 of file njn_localmaxstat.hpp.

Referenced by copy(), free(), getR(), LocalMaxStatMatrix::getR(), and init().

◆ d_sigma

double LocalMaxStat::d_sigma
private

Definition at line 179 of file njn_localmaxstat.hpp.

Referenced by clear(), copy(), and LocalMaxStatMatrix::getR().

◆ d_sigmaAssoc

double LocalMaxStat::d_sigmaAssoc
private

Definition at line 181 of file njn_localmaxstat.hpp.

Referenced by clear(), copy(), and LocalMaxStatMatrix::getR().

◆ d_terminated

bool LocalMaxStat::d_terminated
private

Definition at line 183 of file njn_localmaxstat.hpp.

Referenced by clear(), copy(), and dynProgCalc().

◆ d_thetaMin

double LocalMaxStat::d_thetaMin
private

Definition at line 174 of file njn_localmaxstat.hpp.

Referenced by clear(), copy(), and LocalMaxStatMatrix::getR().

◆ d_thetaMinusDelta

double LocalMaxStat::d_thetaMinusDelta
private

Definition at line 177 of file njn_localmaxstat.hpp.

Referenced by clear(), copy(), and LocalMaxStatMatrix::getR().

◆ s_time

double LocalMaxStat::s_time = 0.0
staticprivate

Definition at line 194 of file njn_localmaxstat.hpp.


The documentation for this class was generated from the following files:
Modified on Mon Apr 22 04:01:32 2024 by modify_doxy.py rev. 669887