solar.model(tripEstimation)
solar.model()所属R语言包:tripEstimation
Function to create a solar model object for metropolis location sampler
函数来创建一个大都市位置采样器的太阳能模型对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
A solar model to manage likelihood functions, environmental masks and behavioural likelihood functions. There are several options for configuring the model, and this may be considered a template for any given model. The model function exists simply to make the object construction simple.
一个太阳能模型管理的可能性功能,环境口罩和行为的似然函数。有几个选项的配置的模型,这可能被认为是对于任何给定的模型模板。该模型函数存在简单的到对象构造简单。
用法----------Usage----------
solar.model(segments, day, light,
proposal.x, proposal.z, mask.x, mask.z,
fix.release = TRUE, fix.recapture = TRUE,
calibration,
light.sigma = 7, k.sigma = 10,
behav = "speed", behav.dist = "gamma",
behav.mean, behav.sd,
proj.string = "+proj=longlat",
ekstrom = c(-5, 3, light.sigma),
ekstrom.limit = "light")
参数----------Arguments----------
参数:segments
vector identifying twilight segment
矢量识别暮光之城段
参数:day
vector of date-times for each light level
每个光向量的日期时间
参数:light
vector of light levels
矢量灯光亮度
参数:proposal.x
function from object managing X proposals
功能对象管理的X建议
参数:proposal.z
function from object managing Z proposals
从对象管理ž建议中的作用
参数:mask.x
lookup function for X's against masks
LOOKUP函数为X的对口罩
参数:mask.z
lookup function for Z's against masks
Z的查找功能,对口罩
参数:fix.release
logical - is the release point known?
逻辑 - 释放点知道吗?
参数:fix.recapture
logical - is the recapture point known?
逻辑 - 的回收点,知道吗?
参数:calibration
calibration function for predicted light level for solar elevation
校准功能预测的光照强度为太阳高度角
参数:light.sigma
variance for light data
光数据的方差
参数:k.sigma
variance for light attenuation
方差为光衰减
参数:behav
model distributions to be used for behaviour - defaults to "speed"
用于行为的模型分布 - 默认为“速度”
参数:behav.dist
distribution to be used for behaviour
分配给用于行为
参数:behav.mean
mean for behavioural distribution
意味着行为分布
参数:behav.sd
variance for behavioural distribution
行为分布的方差
参数:proj.string
PROJ.4 string for coordinate system used
PROJ.4字符串使用的坐标系统
参数:ekstrom
parameters to use for ekstrom limit - min elevation, max elevation, sigma for outside that range
埃克斯特罗姆限制使用的参数 - 分抬高,该范围以外的最大海拔高度,西格玛
参数:ekstrom.limit
mode of ekstrom limit to impose - defaults to "light"
模式的埃克斯特罗姆施加限制 - 默认为“光”
Details
详细信息----------Details----------
The vectors of segments, day and light are expected to be of the same length.
的向量segments,day和light预计将具有相同的长度。
Fixed recapture and release points are treated specially for ease of sampling, but the sampling is written to be general for any fixed locations.
固定回收和释放点特殊处理,方便抽样,但抽样写入任何固定地点一般。
Behavioural models may be specified either as lognormal or log-gamma. By editing the function created as logp.behavioural this may be specified differently.
行为模型可以被指定为对数正态分布或对数伽玛。通过编辑功能创建logp.behavioural的这可能是不同的规定。
Transformation of coordinates is supported via a simple function that only performs coordinate transforms if proj.string is not longlat. See project for the underlying functionality.
通过一个简单的函数,只有进行坐标变换,如果proj.string就是不longlat的坐标变换的支持。见project的基本功能。
值----------Value----------
proposal.x(x) - generates new proposals for the x from the current x. Generates all x at once.
proposal.x(X) - 产生新的建议,从当前的X为x。一次生成所有的x。
proposal.z(z) - generates new proposals for the x from the current z. Generates all z at once.
proposal.z(Z) - 产生新的建议,从现在的z为x。生成所有的z。
mask.x(x) - mask function for the x. Simultaneously tests all x and returns a vector of booleans indicating which are acceptable.
mask.x(x)的 - 为x的屏蔽功能。同时测试所有的X和返回的向量布尔值,表示这是可以接受的。
mask.z(z) - mask function for the z. Simultaneously tests all z and returns a vector of booleans indicating which are acceptable.
mask.z(Z) - 为z的屏蔽功能。同时测试所有的z和返回的向量布尔值,表示这是可以接受的。
logp.position(x) - Given the set of x, returns a vector that gives the contribution each x make to the log posterior based on position alone.
logp.position(x)的 - 在给定的组的x,返回一个向量,给出每一x使基于位置单独的log后路的贡献。
logp.behavourial(k,xa,z,xb) - Computes the contribution to the log posterior from the behavioural model on a subset of segments that make up the path. Here k is a vector of the segment numbers, where the segments pass from xa to z to xb, and the function returns the contribution to the log posterior from each segment. This is the only function expected to work with only a subset of the x and z.
logp.behavourial(XA,K,Z,预算外) - 计算的log后的行为模式上的一个子集段路径的贡献。这里k是一个向量,段段号,通过XA到z思的贡献,该函数返回后从各分部的log。这是唯一的预期工作的一个子集的x和z的函数。
start.x - suggested starting points for the x
start.x - 建议的出发点为x
start.z - suggested starting points for the z
start.z - 建议的出发点为z
The only function that must operate on a subset of the x/z is logp.behavourial. All the other functions operate on all x or z simultaneously, simplifying the implementation for the user.
唯一的功能,必须在X / Z的一个子集上操作是logp.behavourial。所有其他功能同时操作所有的x或z,简化为用户执行。
Note that x can consist of several parameters, not just the locations, but we assume the first two components of each x specify the location. For example, in the light level models each x is (lon,lat,k) where k is the attenuation of the light level.
请注意,x可以由几个参数,不只是的位置,但我们假设第一两个组件的每个x指定的位置。例如,在光的级别车型每个x是(经度,纬度,k)的,其中,k为衰减的光的一级。
Some details of this implementation are not as nice as they could be. First, it would be better if did not calculate the contributions to the posterior for points the mask rejects. Also, it may be better to separate the specification of the functions that generate proposals from the other functions, so that we can tune the proposal distributions without re-generating the whole model specification.
这种实现的一些细节,因为它们可能不是很好。首先,它会更好,如果不计算后点的面具拒绝的贡献。此外,它可能是更好地分离的功能,产生建议的其他功能规格,让我们可以调整的建议分布,而无需重新生成整个模型规范。
(作者)----------Author(s)----------
Simon Wotherspoon and Michael Sumner
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|