Create an R stub function for a sampler implemented in C
进样器的实现在C创建一个R存根,功能
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Create an R stub function for a sampler implemented in C.
创建一个R存根,功能进样器的C语言实现。
用法----------Usage----------
参数----------Arguments----------
参数:sampler.symbol
A one-element character vector containing the symbol of the C sampler function.
一个元素的字符向量的C采样功能的符号。
参数:sampler.context
An arbitrary R object to be passed to the sampler function.
要传递给采样函数的任意R对象。
参数:name
The name attribute for the sampler function.
name采样功能属性。
参数:name.expression
The name.expression attribute for the sampler function, in plotmath format.
name.expression属性采样的功能,在plotmath格式。
Details
详细信息----------Details----------
This function is intended to allow compare.samplers to be able to invoke sampler functions written in C. It wraps a C sampler function in an R function implementing the standard sampler interface. The function named by sampler.symbol is expected to have the function prototype:
此功能是为了让compare.samplers能够调用C语言编写的包装在一个R函数执行标准取样器接口的C采样功能的采样器功能。功能命名sampler.symbol预计将有函数原型:
值----------Value----------
An R function implementing the interface described in compare.samplers.
的R函数落实在compare.samplers所描述的接口。
参见----------See Also----------
“R/C Glue in SamplerCompare” (vignette)
“R / C胶粘剂在SamplerCompare”的(暗角)