fixed type in math op in filter.cpp
updated transition matrices