BaumWelch  baumwelch-0.3.8
OpenGrm-BaumWelch library
Public Types | Public Member Functions | List of all members
fst::LogAdder< Weight > Class Template Reference

#include <log-adder.h>

Public Types

using HelperWeight = typename std::conditional_t< IsIdempotent< Weight >::value, LogWeightTpl< typename Weight::ValueType >, Weight >
 

Public Member Functions

 LogAdder (Weight weight=Weight::Zero())
 
void Add (const Weight &weight)
 
Weight Sum () const
 

Detailed Description

template<class Weight>
class fst::LogAdder< Weight >

Definition at line 29 of file log-adder.h.

Member Typedef Documentation

template<class Weight >
using fst::LogAdder< Weight >::HelperWeight = typename std::conditional_t<IsIdempotent<Weight>::value, LogWeightTpl<typename Weight::ValueType>, Weight>

Definition at line 36 of file log-adder.h.

Constructor & Destructor Documentation

template<class Weight >
fst::LogAdder< Weight >::LogAdder ( Weight  weight = Weight::Zero())
inlineexplicit

Definition at line 38 of file log-adder.h.

Member Function Documentation

template<class Weight >
void fst::LogAdder< Weight >::Add ( const Weight &  weight)
inline

Definition at line 42 of file log-adder.h.

template<class Weight >
Weight fst::LogAdder< Weight >::Sum ( ) const
inline

Definition at line 45 of file log-adder.h.


The documentation for this class was generated from the following file: