actionWeightMat: Info about the weights of the actions in the HMDP model under...

Description Usage Arguments Value Author(s) Examples

View source: R/infoMat.R

Description

Info about the weights of the actions in the HMDP model under consideration.

Usage

1
2
  actionWeightMat(prefix = "", file = "actionWeight.bin",
    labels = "actionWeightLbl.bin")

Arguments

prefix

A character string with the prefix added to til file(s).

file

The HMDP binary file containing the description under consideration.

labels

The HMDP binary file containing the labels under consideration.

Value

A matrix with columns (aId, ...) where aId is the action row id and ... are the weights of the action.

Author(s)

Lars Relund lars@relund.dk

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
wDir<-getwd()
setwd(system.file("models", package = "MDP"))

prefix<-"machine1_"
stateIdxMat(prefix)
stateIdxDf(prefix)
actionIdxMat(prefix)
actionIdxDf(prefix)
actionWeightMat(prefix)
weightNames(prefix)
transProbMat(prefix)
a<-actionInfo(prefix)
a[order(a$sId),]

setwd(wDir)

MDP documentation built on May 2, 2019, 6:48 p.m.

Related to actionWeightMat in MDP...