Package jline.api.mam
Class Map_distKt
-
- All Implemented Interfaces:
public final class Map_distKt
-
-
Method Summary
Modifier and Type Method Description final static Doublemap_dist(Matrix A0, Matrix A1, Matrix B0, Matrix B1, Integer L)Computes the squared L2 distance between lag-L joint densities of two MAPs. final static Doublemap_dist(Matrix A0, Matrix A1, Matrix B0, Matrix B1, Integer L, Matrix alA, Matrix alB)Computes the squared L2 distance between lag-L joint densities of two MAPs. -
-
Method Detail
-
map_dist
final static Double map_dist(Matrix A0, Matrix A1, Matrix B0, Matrix B1, Integer L)
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
final static Double map_dist(Matrix A0, Matrix A1, Matrix B0, Matrix B1, Integer L, Matrix alA, Matrix alB)
Computes the squared L2 distance between lag-L joint densities of two MAPs.
Uses the identity ||f - g||^2 = <f,f> - 2<f,g> + <g,g> where the inner products are computed via map_exp_mul_int.
- 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
-
-
-
-