convertBinary2HMP {MDP}R Documentation

Convert a HMDP model stored in binary format to a hmp (xml) file.

Description

Convert a HMDP model stored in binary format to a hmp (xml) file. The function simply parse the binary files and create hmp files using the hmpMDPWriter.

Usage

convertBinary2HMP(binNames=c("stateIdx.bin","stateIdxLbl.bin","actionIdx.bin",
"actionIdxLbl.bin","actionWeight.bin","actionWeightLbl.bin","transProb.bin")
,out='r_convert.hmp', duration=1)

Arguments

binNames A character vector of length 7 giving the names of the binary files storing the model.
out The name of the hmp file (e.g. mdp.hmp).
duration Weight number storing the duration.

Value

NULL (invisible).

Note

Note all indexes are starting from zero (C/C++ style).

Author(s)

Lars Relund lars@relund.dk

See Also

convertHMP2Binary.

Examples

f = system.file("inst/models", "mdp.xml", package = "MDP")
convertHMP2Binary("mdp.hmp")
stateIdxDf()
actionInfo()

[Package MDP version 1.0 Index]