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

Search Toolkit Book for DynProgProbLim

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

+ Inheritance diagram for DynProgProbLim:
+ Collaboration diagram for DynProgProbLim:

Public Member Functions

 DynProgProbLim (ValueFct *valueFct_=0, size_t dimInputProb_=0, const double *inputProb_=0, Int4 valueLower_=0, Int4 valueUpper_=0, const double *prob_=0)
 
 DynProgProbLim (const DynProgProbLim &dynProgProbLim_)
 
virtual ~DynProgProbLim ()
 
virtual DynProgProbLimoperator= (const DynProgProbLim &dynProgProbLim_)
 
virtual DynProgProbLimoperator= (const DynProgProb &dynProgProb_)
 
virtual void copy (const DynProgProbLim &dynProgProbLim_)
 
virtual void copy (const DynProgProb &dynProgProb_, double probLost_)
 
virtual void copy (const DynProgProb &dynProgProb_)
 
virtual void copy (size_t step_, const double *const *array_, size_t arrayCapacity_, Int4 valueBegin_=0, Int4 valueLower_=0, Int4 valueUpper_=0, ValueFct *valueFct_=0, size_t dimInputProb_=0, const double *inputProb_=0)
 
virtual void setLimits (Int4 valueBegin_=0, Int4 valueEnd_=0)
 
virtual void update ()
 
virtual void clear (Int4 valueLower_, Int4 valueUpper_=0, const double *prob_=0)
 
virtual void clear (Int4 valueBegin_, size_t arrayCapacity_)
 
virtual void clear ()
 
virtual double getProbLost () const
 
virtual void setValueFct (ValueFct *valueFct_)
 
virtual void setInput (size_t dimInputProb_, const double *inputProb_)
 
virtual double getProb (Int4 value_) const
 
virtual size_t getStep () const
 
virtual const double *constgetArray () const
 
virtual size_t getArrayCapacity () const
 
virtual Int4 getValueBegin () const
 
virtual Int4 getValueLower () const
 
virtual Int4 getValueUpper () const
 
virtual ValueFctgetValueFct () const
 
virtual size_t getDimInputProb () const
 
virtual const double * getInputProb () const
 
- Public Member Functions inherited from DynProgProb
 DynProgProb (ValueFct *valueFct_=0, size_t dimInputProb_=0, const double *inputProb_=0, Int4 valueLower_=0, Int4 valueUpper_=0, const double *prob_=0)
 
 DynProgProb (const DynProgProb &dynProgProb_)
 
virtual ~DynProgProb ()
 
virtual operator bool () const
 
virtual void setValueFct (ValueFct *valueFct_)
 
virtual void setInput (size_t dimInputProb_, const double *inputProb_)
 
virtual double getProb (Int4 value_) const
 
virtual size_t getStep () const
 
virtual const double *constgetArray () const
 
virtual size_t getArrayCapacity () const
 
virtual Int4 getValueBegin () const
 
virtual Int4 getValueLower () const
 
virtual Int4 getValueUpper () const
 
virtual ValueFctgetValueFct () const
 
virtual size_t getDimInputProb () const
 
virtual const double * getInputProb () const
 
- Public Member Functions inherited from DynProgProbProto
virtual ~DynProgProbProto ()
 

Private Member Functions

virtual void reserve (size_t arrayCapacity_)
 
virtual void setValueBegin (Int4 valueBegin_)
 
virtual Int4 getValueEnd () const
 
virtual Int4 getArrayPos (Int4 value_) const
 

Private Attributes

double d_probLost
 

Additional Inherited Members

- Public Types inherited from DynProgProbProto
typedef Int4 ValueFct(Int4 oldValue_, size_t input_)
 
- Static Public Attributes inherited from DynProgProb
static const size_t VALUE_BEGIN
 
static const size_t ARRAY_CAPACITY = 256
 
- Protected Member Functions inherited from DynProgProb
virtual Int4 getArrayPos (Int4 value_) const
 
virtual Int4 getValueEnd () const
 
void reserve (size_t arrayCapacity_)
 
virtual size_t & lgetStep ()
 
virtual double ** lgetArray ()
 
virtual size_t & lgetArrayCapacity ()
 
virtual Int4lgetValueBegin ()
 
virtual Int4lgetValueLower ()
 
virtual Int4lgetValueUpper ()
 

Detailed Description

Definition at line 51 of file njn_dynprogproblim.hpp.

Constructor & Destructor Documentation

◆ DynProgProbLim() [1/2]

DynProgProbLim::DynProgProbLim ( ValueFct valueFct_ = 0,
size_t  dimInputProb_ = 0,
const double *  inputProb_ = 0,
Int4  valueLower_ = 0,
Int4  valueUpper_ = 0,
const double *  prob_ = 0 
)
inline

Definition at line 73 of file njn_dynprogproblim.hpp.

◆ DynProgProbLim() [2/2]

DynProgProbLim::DynProgProbLim ( const DynProgProbLim dynProgProbLim_)
inline

Definition at line 89 of file njn_dynprogproblim.hpp.

◆ ~DynProgProbLim()

virtual DynProgProbLim::~DynProgProbLim ( )
inlinevirtual

Definition at line 94 of file njn_dynprogproblim.hpp.

Member Function Documentation

◆ clear() [1/3]

virtual void DynProgProbLim::clear ( void  )
inlinevirtual

Reimplemented from DynProgProb.

Definition at line 173 of file njn_dynprogproblim.hpp.

References clear().

Referenced by clear().

◆ clear() [2/3]

virtual void DynProgProbLim::clear ( Int4  valueBegin_,
size_t  arrayCapacity_ 
)
inlinevirtual

Reimplemented from DynProgProb.

Definition at line 166 of file njn_dynprogproblim.hpp.

References DynProgProb::clear().

◆ clear() [3/3]

virtual void DynProgProbLim::clear ( Int4  valueLower_,
Int4  valueUpper_ = 0,
const double *  prob_ = 0 
)
inlinevirtual

Reimplemented from DynProgProb.

Definition at line 154 of file njn_dynprogproblim.hpp.

References DynProgProb::clear().

◆ copy() [1/4]

virtual void DynProgProbLim::copy ( const DynProgProb dynProgProb_)
inlinevirtual

Reimplemented from DynProgProb.

Definition at line 123 of file njn_dynprogproblim.hpp.

◆ copy() [2/4]

virtual void DynProgProbLim::copy ( const DynProgProb dynProgProb_,
double  probLost_ 
)
inlinevirtual

Definition at line 114 of file njn_dynprogproblim.hpp.

References DynProgProb::copy().

◆ copy() [3/4]

virtual void DynProgProbLim::copy ( const DynProgProbLim dynProgProbLim_)
inlinevirtual

Definition at line 109 of file njn_dynprogproblim.hpp.

References copy(), and getProbLost().

◆ copy() [4/4]

virtual void DynProgProbLim::copy ( size_t  step_,
const double *const array_,
size_t  arrayCapacity_,
Int4  valueBegin_ = 0,
Int4  valueLower_ = 0,
Int4  valueUpper_ = 0,
ValueFct valueFct_ = 0,
size_t  dimInputProb_ = 0,
const double *  inputProb_ = 0 
)
inlinevirtual

Reimplemented from DynProgProb.

Definition at line 129 of file njn_dynprogproblim.hpp.

◆ getArray()

virtual const double* const* DynProgProb::getArray
inline

Definition at line 175 of file njn_dynprogprob.hpp.

Referenced by reserve(), setValueBegin(), and update().

◆ getArrayCapacity()

virtual size_t DynProgProb::getArrayCapacity
inline

Definition at line 176 of file njn_dynprogprob.hpp.

Referenced by reserve(), setLimits(), setValueBegin(), and update().

◆ getArrayPos()

virtual Int4 DynProgProb::getArrayPos
inlineprivate

Definition at line 216 of file njn_dynprogprob.hpp.

Referenced by update().

◆ getDimInputProb()

virtual size_t DynProgProb::getDimInputProb
inline

Definition at line 182 of file njn_dynprogprob.hpp.

Referenced by update().

◆ getInputProb()

virtual const double* DynProgProb::getInputProb
inline

Definition at line 183 of file njn_dynprogprob.hpp.

Referenced by update().

◆ getProb()

virtual double DynProgProb::getProb
inline

Definition at line 164 of file njn_dynprogprob.hpp.

References _ASSERT.

Referenced by descendingLadderEpochRepeat(), and setLimits().

◆ getProbLost()

virtual double DynProgProbLim::getProbLost ( ) const
inlinevirtual

Definition at line 189 of file njn_dynprogproblim.hpp.

Referenced by copy(), and descendingLadderEpochRepeat().

◆ getStep()

virtual size_t DynProgProb::getStep
inline

Definition at line 173 of file njn_dynprogprob.hpp.

Referenced by update().

◆ getValueBegin()

virtual Int4 DynProgProb::getValueBegin
inline

Definition at line 177 of file njn_dynprogprob.hpp.

Referenced by setValueBegin(), and update().

◆ getValueEnd()

virtual Int4 DynProgProb::getValueEnd
inlineprivate

Definition at line 221 of file njn_dynprogprob.hpp.

Referenced by update().

◆ getValueFct()

virtual ValueFct* DynProgProb::getValueFct
inline

Definition at line 181 of file njn_dynprogprob.hpp.

Referenced by update().

◆ getValueLower()

virtual Int4 DynProgProb::getValueLower
inline

Definition at line 178 of file njn_dynprogprob.hpp.

Referenced by setLimits(), and update().

◆ getValueUpper()

virtual Int4 DynProgProb::getValueUpper
inline

Definition at line 179 of file njn_dynprogprob.hpp.

Referenced by descendingLadderEpochRepeat(), setLimits(), and update().

◆ operator=() [1/2]

virtual DynProgProbLim& DynProgProbLim::operator= ( const DynProgProb dynProgProb_)
inlinevirtual

Reimplemented from DynProgProb.

Definition at line 103 of file njn_dynprogproblim.hpp.

◆ operator=() [2/2]

virtual DynProgProbLim& DynProgProbLim::operator= ( const DynProgProbLim dynProgProbLim_)
inlinevirtual

Definition at line 96 of file njn_dynprogproblim.hpp.

References copy().

◆ reserve()

void DynProgProbLim::reserve ( size_t  arrayCapacity_)
privatevirtual

◆ setInput()

void DynProgProb::setInput

Definition at line 155 of file njn_dynprogprob.cpp.

◆ setLimits()

void DynProgProbLim::setLimits ( Int4  valueBegin_ = 0,
Int4  valueEnd_ = 0 
)
virtual

◆ setValueBegin()

void DynProgProbLim::setValueBegin ( Int4  valueBegin_)
privatevirtual

◆ setValueFct()

virtual void DynProgProb::setValueFct
inline

Definition at line 150 of file njn_dynprogprob.hpp.

Referenced by descendingLadderEpochRepeat().

◆ update()

void DynProgProbLim::update ( )
virtual

Member Data Documentation

◆ d_probLost

double DynProgProbLim::d_probLost
private

Definition at line 193 of file njn_dynprogproblim.hpp.

Referenced by setLimits(), and update().


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:57:33 2024 by modify_doxy.py rev. 669887