Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include <fst/script/fst-class.h>
00018 #include <fst/script/script-impl.h>
00019 #include <fst/script/minimize.h>
00020
00021 namespace fst {
00022 namespace script {
00023
00024 void Minimize(MutableFstClass *ofst1, MutableFstClass *ofst2, float delta) {
00025 if (ofst2 && !ArcTypesMatch(*ofst1, *ofst2, "Minimize")) return;
00026 MinimizeArgs args(ofst1, ofst2, delta);
00027
00028 Apply<Operation<MinimizeArgs> >("Minimize", ofst1->ArcType(), &args);
00029 }
00030
00031 REGISTER_FST_OPERATION(Minimize, StdArc, MinimizeArgs);
00032 REGISTER_FST_OPERATION(Minimize, LogArc, MinimizeArgs);
00033
00034 }
00035 }
00036