找回密码
 注册
查看: 337|回复: 0

R语言 smfsb包 rcfmc()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 10:23:57 | 显示全部楼层 |阅读模式
rcfmc(smfsb)
rcfmc()所属R语言包:smfsb

                                        Simulate a continuous time finite state space Markov chain
                                         模拟一个持续时间有限的状态空间马尔可夫链。

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

This function simulates a single realisation from a continuous time Markov chain having a finite state space based on a given transition rate matrix.
此功能实现从一个给定的转换率矩阵的基础上具有有限状态空间的一个连续时间的马尔可夫链模拟的是单。


用法----------Usage----------


rcfmc(n,Q,pi0)



参数----------Arguments----------

参数:n
The number of states to be sampled from the Markov chain, including the initial state, which will be sampled using pi0.
从马尔可夫链的状态数进行采样,包括初始状态,将采样使用pi0。


参数:Q
The transition rate matrix of the Markov chain, where each off-diagonal element Q[i,j] represents the rate of transition from state i to state j. This matrix is assumed to be square, having rows summing to zero.
的马尔可夫链的转移率矩阵,其中每个非对角线上元素Q[i,j]率的过渡状态i声明j。该矩阵被假定为方形,具有行求和为零。


参数:pi0
A vector representing the probability distribution of the initial state of the Markov chain. If this vector is of length r, then the transition matrix P is assumed to be r x r. The elements of this vector are assumed to be non-negative and sum to one, though in fact, they will be normalised by the sampling procedure.
一个向量Markov链的初始状态的概率分布。如果此向量的长度为r,然后过渡矩阵P被假定为r x r。此向量的元素都被假定为一个非负和sum,尽管事实上,他们将被归一化采样程序。


值----------Value----------

An R stepfun object containing the sampled path of the process.
Rstepfun对象包含样本路径的过程。


参见----------See Also----------

rfmc, stepfun
rfmc,stepfun


实例----------Examples----------


plot(rcfmc(20,matrix(c(-0.5,0.5,1,-1),ncol=2,byrow=TRUE),c(1,0)))

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-5-29 04:24 , Processed in 0.021786 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表