Cambridge SMT System
fst::ScaleWeight< Arc > Struct Template Reference

Function object that applies to every single weight a scaling factor. More...

#include <lexicographic-tropical-tropical-funcs.h>

Public Member Functions

 ScaleWeight (float scale)
 
Arc::Weight operator() (const float weight) const
 
Arc::Weight operator() (const typename Arc::Weight &weight) const
 

Public Attributes

float scale_
 

Detailed Description

template<class Arc>
struct fst::ScaleWeight< Arc >

Function object that applies to every single weight a scaling factor.

Definition at line 113 of file lexicographic-tropical-tropical-funcs.h.

Constructor & Destructor Documentation

template<class Arc>
fst::ScaleWeight< Arc >::ScaleWeight ( float  scale)
inline

Definition at line 114 of file lexicographic-tropical-tropical-funcs.h.

Member Function Documentation

template<class Arc>
Arc::Weight fst::ScaleWeight< Arc >::operator() ( const float  weight) const
inline

Definition at line 118 of file lexicographic-tropical-tropical-funcs.h.

template<class Arc>
Arc::Weight fst::ScaleWeight< Arc >::operator() ( const typename Arc::Weight &  weight) const
inline

Definition at line 121 of file lexicographic-tropical-tropical-funcs.h.

Member Data Documentation

template<class Arc>
float fst::ScaleWeight< Arc >::scale_

Definition at line 124 of file lexicographic-tropical-tropical-funcs.h.


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