fnc function

Find next cell function

Find next cell function

fnc(rdmap, tm, curInd, mom = NULL, momAdj = 0.5, w1 = exp(1), w2 = 1, varEst = 10)

Arguments

  • rdmap: reduced dimensionality matrix with cells in rows and dims in columns
  • tm: Transition matrix
  • curInd: Current state on tm
  • mom: Current momentum vector
  • momAdj: Weighting to adjust momentum. From 0-1. Lower numbers make smaller adjustment to momentum vector.
  • w1: Parameter - Base used for modifying of tm probs.
  • w2: Parameter - Multiplifaction factor used for modifying tm probs.
  • varEst: Number of alternatives to sample for estimating variance.

Returns

Returns index of new cell and new momentum vector

Details

Find next cell function. Transitioin probabilities are modifed by calulating the cosine of the angle between the current momentum vector and the vector on the rdmap required for each transtion. The tranisiton probability is adjusted by multiplying by w1^(w2 * (cosine_angle)) and then normalising.

Examples

## Not run: nextCell <- fnc(rdmap, tm, curInd) ## End(Not run)

Author(s)

Wajid Jawaid

  • Maintainer: Wajid Jawaid
  • License: GPL (>= 2)
  • Last published: 2017-07-11

Useful links