Cambridge SMT System
function-weight.cpp File Reference
#include "function-weight.h"
#include <fst/fstlib.h>
#include <limits>
#include <ostream>
#include <iostream>
#include <algorithm>
Include dependency graph for function-weight.cpp:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const MertLine &ml)
 
std::istream & operator>> (std::istream &is, MertLine &ml)
 
std::ostream & operator<< (std::ostream &os, const MertList &l)
 
bool operator== (const MertLine &thisML, const MertLine &that)
 
bool ApproxEqual (const FunctionWeight &w1, const FunctionWeight &w2, float delta)
 
FunctionWeight Times (const FunctionWeight &w1, const FunctionWeight &w2)
 
FunctionWeight Plus (const FunctionWeight &w1, const FunctionWeight &w2)
 
std::ostream & operator<< (std::ostream &strm, const FunctionWeight &w)
 
std::istream & operator>> (std::istream &strm, FunctionWeight &w)
 

Function Documentation

bool ApproxEqual ( const FunctionWeight w1,
const FunctionWeight w2,
float  delta 
)

Definition at line 141 of file function-weight.cpp.

Here is the caller graph for this function:

std::ostream& operator<< ( std::ostream &  os,
const MertLine ml 
)

Definition at line 19 of file function-weight.cpp.

Here is the caller graph for this function:

std::ostream& operator<< ( std::ostream &  os,
const MertList l 
)

Definition at line 30 of file function-weight.cpp.

std::ostream& operator<< ( std::ostream &  strm,
const FunctionWeight w 
)

Definition at line 240 of file function-weight.cpp.

Here is the call graph for this function:

bool operator== ( const MertLine thisML,
const MertLine that 
)

Definition at line 38 of file function-weight.cpp.

Here is the caller graph for this function:

std::istream& operator>> ( std::istream &  is,
MertLine ml 
)

Definition at line 23 of file function-weight.cpp.

std::istream& operator>> ( std::istream &  strm,
FunctionWeight w 
)

Definition at line 250 of file function-weight.cpp.

FunctionWeight Plus ( const FunctionWeight w1,
const FunctionWeight w2 
)

Definition at line 197 of file function-weight.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

FunctionWeight Times ( const FunctionWeight w1,
const FunctionWeight w2 
)

Definition at line 163 of file function-weight.cpp.

Here is the call graph for this function:

Here is the caller graph for this function: