Package jline.api.mam
Class Map_dist
java.lang.Object
jline.api.mam.Map_dist
-
Method Summary
Modifier and TypeMethodDescriptionstatic doubleComputes the squared L2 distance between lag-L joint densities of two MAPs.static doubleComputes the squared L2 distance between lag-L joint densities of two MAPs.
-
Method Details
-
map_dist
Computes the squared L2 distance between lag-L joint densities of two MAPs. The stationary vectors at arrivals are computed internally.- Parameters:
A0- hidden transition matrix of the first MAPA1- visible transition matrix of the first MAPB0- hidden transition matrix of the second MAPB1- visible transition matrix of the second MAPL- lag parameter- Returns:
- the squared L2 distance
-
map_dist
public static double map_dist(Matrix A0, Matrix A1, Matrix B0, Matrix B1, int L, Matrix alA, Matrix alB) Computes the squared L2 distance between lag-L joint densities of two MAPs.- Parameters:
A0- hidden transition matrix of the first MAPA1- visible transition matrix of the first MAPB0- hidden transition matrix of the second MAPB1- visible transition matrix of the second MAPL- lag parameteralA- stationary vector at arrivals of the first MAPalB- stationary vector at arrivals of the second MAP- Returns:
- the squared L2 distance
-