Package jline.lib.butools.reptrans
Class FindMarkovianRepresentationKt
-
- All Implemented Interfaces:
public final class FindMarkovianRepresentationKt
-
-
Method Summary
Modifier and Type Method Description final static List<Matrix>findMarkovianRepresentation(List<Matrix> rep, Function2<List<Matrix>, Matrix, List<Matrix>> transfun, Function2<List<Matrix>, Integer, Double> evalfun, Double precision)Obtains a Markovian representation from a non-Markovian one while keeping the size the same, by applying a series of elementary transformations. -
-
Method Detail
-
findMarkovianRepresentation
final static List<Matrix> findMarkovianRepresentation(List<Matrix> rep, Function2<List<Matrix>, Matrix, List<Matrix>> transfun, Function2<List<Matrix>, Integer, Double> evalfun, Double precision)
Obtains a Markovian representation from a non-Markovian one while keeping the size the same, by applying a series of elementary transformations.
- Parameters:
rep- The initial non-Markovian representation (list of matrices)transfun- A function that transforms the representation using the given similarity transformation matrixevalfun- A function that returns how far the representation is from the Markovian oneprecision- A representation is considered Markovian if it is closer than the precision (default 1e-7)- Returns:
The Markovian representation, if found. If not found, the closest one is returned.
Note: This function should not be called directly. It is used by 'phFromME', 'mapFromRAP', etc.
-
-
-
-