TransToMaxAdj: TransToMaxAdj

View source: R/TransToMaxAdj.R

TransToMaxAdjR Documentation

TransToMaxAdj

Description

A transition matrix function, whereby given the current worldstate, we switch to the world state with the highest score, changing at most one descriptor in the process.

Usage

TransToMaxAdj(TheList, TransRelAdj = NA)

Arguments

TheList

a list containing the CIB matrix, and a "shape" vector. The output of InputCibBanner is an appropriate input here.

TransRelAdj

a list containing a blank transition matrix, a relative score matrix, and an adjacency matrix. The output of MakeScoreMatrix is appropriate here.

Value

A matrix describing the transition probability from each world state (rows) to each other world state (columns).

Note

In the case of a tie, transition probability is split evenly between the top candidates.

Other transition functions can be found via TransitionCalculators

Author(s)

Alastair Jamieson Lane. <aja107@math.ubc.ca>

Examples

data(ExampleCIBdata)
Transitions<-TransToMaxAdj(ExampleCIBdata)


alastair-JL/StochasticCIB documentation built on July 27, 2023, 1:12 a.m.