GRM-SFST  sfst-1.2.1
OpenGrm SFst Library
Classes | Namespaces | Functions
state-weights.h File Reference
#include <iostream>
#include <ostream>
#include <string>
#include <vector>
#include <fst/float-weight.h>
#include <fst/fst.h>
#include <fst/matcher.h>
#include <fst/signed-log-weight.h>
#include <fst/weight.h>
#include <sfst/sfst.h>
Include dependency graph for state-weights.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  sfst::internal::ApproxEqualPred< Weight >
 
class  sfst::internal::ApproxEqualPred< fst::SignedLogWeightTpl< T > >
 

Namespaces

 sfst
 
 sfst::internal
 

Functions

template<class Weight >
void sfst::NormWeights (std::vector< Weight > *weights)
 
template<class Weight >
bool sfst::ApproxEqualWeights (const std::vector< Weight > &weights1, const std::vector< Weight > &weights2, float delta=fst::kDelta, Weight approx_zero=Weight::NoWeight())
 
template<class Weight >
void sfst::WriteWeights (std::ostream &strm, const std::vector< Weight > &weights)
 
template<class Weight >
bool sfst::WriteWeights (const std::string &filename, const std::vector< Weight > &weights)
 
template<class Arc >
void sfst::SumStateWeights (const fst::Fst< Arc > &fst, std::vector< typename Arc::Weight > *weights, typename Arc::Label phi_label, bool fail_arc)
 
template<class Arc >
void sfst::DiffStateWeights (const fst::Fst< Arc > &fst, std::vector< typename Arc::Weight > *weights, typename Arc::Label phi_label, bool fail_arc)
 
template<class Arc >
void sfst::SumStates (const fst::Fst< Arc > &fst, typename Arc::Label phi_label, std::vector< typename Arc::Weight > *weights)