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

Template specialization for LexStdArc of ScaleWeight. More...

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

Public Member Functions

 ScaleWeight (float scale)
 
const LexStdWeight operator() (const float weight) const
 
const LexStdWeight operator() (const LexStdWeight &weight) const
 

Public Attributes

float scale_
 

Detailed Description

template<>
struct fst::ScaleWeight< LexStdArc >

Template specialization for LexStdArc of ScaleWeight.

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

Constructor & Destructor Documentation

fst::ScaleWeight< LexStdArc >::ScaleWeight ( float  scale)
inline

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

Member Function Documentation

const LexStdWeight fst::ScaleWeight< LexStdArc >::operator() ( const float  weight) const
inline

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

const LexStdWeight fst::ScaleWeight< LexStdArc >::operator() ( const LexStdWeight weight) const
inline

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

Member Data Documentation

float fst::ScaleWeight< LexStdArc >::scale_

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


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