NCBI C++ ToolKit
|
Search Toolkit Book for DynProgProbLim
#include "njn_dynprogproblim.hpp"
(Private to src/algo/blast/gumbel_params
.)
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 DynProgProbLim & | operator= (const DynProgProbLim &dynProgProbLim_) |
virtual DynProgProbLim & | operator= (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 *const * | getArray () const |
virtual size_t | getArrayCapacity () const |
virtual Int4 | getValueBegin () const |
virtual Int4 | getValueLower () const |
virtual Int4 | getValueUpper () const |
virtual ValueFct * | getValueFct () 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 *const * | getArray () const |
virtual size_t | getArrayCapacity () const |
virtual Int4 | getValueBegin () const |
virtual Int4 | getValueLower () const |
virtual Int4 | getValueUpper () const |
virtual ValueFct * | getValueFct () 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 Int4 & | lgetValueBegin () |
virtual Int4 & | lgetValueLower () |
virtual Int4 & | lgetValueUpper () |
Definition at line 51 of file njn_dynprogproblim.hpp.
|
inline |
Definition at line 73 of file njn_dynprogproblim.hpp.
|
inline |
Definition at line 89 of file njn_dynprogproblim.hpp.
|
inlinevirtual |
Definition at line 94 of file njn_dynprogproblim.hpp.
|
inlinevirtual |
Reimplemented from DynProgProb.
Definition at line 173 of file njn_dynprogproblim.hpp.
References clear().
Referenced by clear().
|
inlinevirtual |
Reimplemented from DynProgProb.
Definition at line 166 of file njn_dynprogproblim.hpp.
References DynProgProb::clear().
|
inlinevirtual |
Reimplemented from DynProgProb.
Definition at line 154 of file njn_dynprogproblim.hpp.
References DynProgProb::clear().
|
inlinevirtual |
Reimplemented from DynProgProb.
Definition at line 123 of file njn_dynprogproblim.hpp.
|
inlinevirtual |
Definition at line 114 of file njn_dynprogproblim.hpp.
References DynProgProb::copy().
|
inlinevirtual |
Definition at line 109 of file njn_dynprogproblim.hpp.
References copy(), and getProbLost().
|
inlinevirtual |
Reimplemented from DynProgProb.
Definition at line 129 of file njn_dynprogproblim.hpp.
Definition at line 175 of file njn_dynprogprob.hpp.
Referenced by reserve(), setValueBegin(), and update().
|
inline |
Definition at line 176 of file njn_dynprogprob.hpp.
Referenced by reserve(), setLimits(), setValueBegin(), and update().
|
inlineprivate |
Definition at line 216 of file njn_dynprogprob.hpp.
Referenced by update().
|
inline |
Definition at line 182 of file njn_dynprogprob.hpp.
Referenced by update().
|
inline |
Definition at line 183 of file njn_dynprogprob.hpp.
Referenced by update().
|
inline |
Definition at line 164 of file njn_dynprogprob.hpp.
References _ASSERT.
Referenced by descendingLadderEpochRepeat(), and setLimits().
|
inlinevirtual |
Definition at line 189 of file njn_dynprogproblim.hpp.
Referenced by copy(), and descendingLadderEpochRepeat().
|
inline |
Definition at line 173 of file njn_dynprogprob.hpp.
Referenced by update().
|
inline |
Definition at line 177 of file njn_dynprogprob.hpp.
Referenced by setValueBegin(), and update().
|
inlineprivate |
Definition at line 221 of file njn_dynprogprob.hpp.
Referenced by update().
|
inline |
Definition at line 181 of file njn_dynprogprob.hpp.
Referenced by update().
|
inline |
Definition at line 178 of file njn_dynprogprob.hpp.
Referenced by setLimits(), and update().
|
inline |
Definition at line 179 of file njn_dynprogprob.hpp.
Referenced by descendingLadderEpochRepeat(), setLimits(), and update().
|
inlinevirtual |
Reimplemented from DynProgProb.
Definition at line 103 of file njn_dynprogproblim.hpp.
|
inlinevirtual |
Definition at line 96 of file njn_dynprogproblim.hpp.
References copy().
|
privatevirtual |
Definition at line 81 of file njn_dynprogproblim.cpp.
References assert, getArray(), getArrayCapacity(), i, DynProgProb::lgetArray(), DynProgProb::lgetArrayCapacity(), memCpy(), and DynProgProb::reserve().
Referenced by setLimits().
void DynProgProb::setInput |
Definition at line 155 of file njn_dynprogprob.cpp.
Definition at line 47 of file njn_dynprogproblim.cpp.
References assert, d_probLost, getArrayCapacity(), getProb(), getValueLower(), getValueUpper(), reserve(), setValueBegin(), and rapidjson::value.
|
privatevirtual |
Reimplemented from DynProgProb.
Definition at line 110 of file njn_dynprogproblim.cpp.
References assert, getArray(), getArrayCapacity(), getValueBegin(), i, DynProgProb::lgetArray(), DynProgProb::lgetValueBegin(), memCpy(), memZero(), and DynProgProb::setValueBegin().
Referenced by setLimits().
|
inline |
Definition at line 150 of file njn_dynprogprob.hpp.
Referenced by descendingLadderEpochRepeat().
|
virtual |
Reimplemented from DynProgProb.
Definition at line 142 of file njn_dynprogproblim.cpp.
References assert, d_probLost, getArray(), getArrayCapacity(), getArrayPos(), getDimInputProb(), getInputProb(), getStep(), getValueBegin(), getValueEnd(), getValueFct(), getValueLower(), getValueUpper(), i, kMax_I4, kMin_I4, DynProgProb::lgetArray(), DynProgProb::lgetStep(), DynProgProb::lgetValueLower(), DynProgProb::lgetValueUpper(), memZero(), prob(), and rapidjson::value.
Referenced by descendingLadderEpochRepeat().
|
private |
Definition at line 193 of file njn_dynprogproblim.hpp.
Referenced by setLimits(), and update().