|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmarkov.solvers.Solver
jmarkov.solvers.SteadyStateSolver
jmarkov.solvers.MtjSolver
public class MtjSolver
This class uses MTJ to solve Steady State probabilities.
| Nested Class Summary | |
|---|---|
static class |
MtjSolver.EnumPrecond
This is the list of preconditioner offered in MTJ. |
static class |
MtjSolver.EnumSolver
This is the list of solvers provided by MTJ. |
| Field Summary |
|---|
| Fields inherited from class jmarkov.solvers.Solver |
|---|
mp |
| Constructor Summary | |
|---|---|
MtjSolver(MarkovProcess mp)
Default constructor. |
|
MtjSolver(MarkovProcess mp,
MtjSolver.EnumSolver solver)
Construct a solver for the given SimpleMarkovProcess. |
|
MtjSolver(MarkovProcess mp,
MtjSolver.EnumSolver solver,
boolean tryOthers)
Construct a solver for the given SimpleMarkovProcess. |
|
| Method Summary | |
|---|---|
java.lang.String |
description()
This method return a complete verbal describtion of this element. |
MtjSolver.EnumSolver |
getCurrentIterSolver()
|
MtjSolver.EnumPrecond |
getCurrentPreConditioner()
|
no.uib.cipr.matrix.Matrix |
getGenerator()
Returns the Generator matrix. |
no.uib.cipr.matrix.Matrix |
getGenMatrix()
|
no.uib.cipr.matrix.sparse.IterativeSolver |
getIteartiveSolver(no.uib.cipr.matrix.Vector pi)
|
no.uib.cipr.matrix.sparse.IterativeSolver |
getIterativeSolver(no.uib.cipr.matrix.Vector pi0,
MtjSolver.EnumSolver solver)
|
long |
getProcessTime()
|
double[] |
getSteadyState()
This process should be extended in order to compute the steady State probabilities of the MarkovChain. |
boolean |
isTryOthers()
|
java.lang.String |
label()
The name of this solver. |
void |
setCurrentIterSolver(MtjSolver.EnumSolver iterSolver)
Sets the solver to use. |
void |
setCurrentPreConditioner(MtjSolver.EnumPrecond preConditioner)
|
void |
setIterSolver(MtjSolver.EnumSolver iterSolver,
boolean tryOthers)
Sets the solver to use. |
void |
setTryOthers(boolean tryOthers)
Sets whether the solver shall try other solvers when it fails. |
| Methods inherited from class jmarkov.solvers.Solver |
|---|
getMP, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jmarkov.basic.JMarkovElement |
|---|
equals |
| Constructor Detail |
|---|
public MtjSolver(MarkovProcess mp)
mp -
public MtjSolver(MarkovProcess mp,
MtjSolver.EnumSolver solver)
mp - Tha Markov process solvedsolver - The solver to use.
public MtjSolver(MarkovProcess mp,
MtjSolver.EnumSolver solver,
boolean tryOthers)
mp - the Markov Process to solve.solver - the iterative solver form the enumeration IterSolver.tryOthers - whether a different solver should be tried if the first one
fails.| Method Detail |
|---|
public no.uib.cipr.matrix.Matrix getGenerator()
public double[] getSteadyState()
throws NotUnichainException
SteadyStateSolvergetRates(), getGenerator, and getRate(State,State)
getSteadyState in class SteadyStateSolverNotUnichainExceptionMarkovProcess.getGenerator(),
MarkovProcess.getRates(),
MarkovProcess.getRate(State, State)public java.lang.String label()
Solver
label in interface JMarkovElementlabel in class SolverSolver.label()public MtjSolver.EnumSolver getCurrentIterSolver()
public void setIterSolver(MtjSolver.EnumSolver iterSolver,
boolean tryOthers)
iterSolver - The currentIterSolver to set.tryOthers - whether other solvers should be tryed if this fails.public void setCurrentIterSolver(MtjSolver.EnumSolver iterSolver)
iterSolver - public MtjSolver.EnumPrecond getCurrentPreConditioner()
public void setCurrentPreConditioner(MtjSolver.EnumPrecond preConditioner)
preConditioner - The currentPreConditioner to set.public final boolean isTryOthers()
public final void setTryOthers(boolean tryOthers)
tryOthers - true if the solver shall try other solvers when it fails.public final no.uib.cipr.matrix.Matrix getGenMatrix()
public final long getProcessTime()
public no.uib.cipr.matrix.sparse.IterativeSolver getIteartiveSolver(no.uib.cipr.matrix.Vector pi)
pi - The probability vector.
public no.uib.cipr.matrix.sparse.IterativeSolver getIterativeSolver(no.uib.cipr.matrix.Vector pi0,
MtjSolver.EnumSolver solver)
pi0 - Initial guess value.solver - The solver used.
public java.lang.String description()
JMarkovElement
JMarkovElement.label()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||