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

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

[复制链接]
发表于 2012-9-30 13:30:35 | 显示全部楼层 |阅读模式
fv(spatstat)
fv()所属R语言包:spatstat

                                         Create a Function Value Table
                                         创建一个函数值表

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

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

Advanced Use Only. This low-level function creates an object of class "fv" from raw numerical data.
仅限进阶使用。这种低层次的功能,创建一个对象类"fv"原始数值数据。


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


fv(x, argu = "r", ylab = NULL, valu, fmla = NULL, alim = NULL, labl =
names(x), desc = NULL, unitname = NULL, fname = NULL, yexp = ylab)



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

参数:x
A data frame with at least 2 columns containing the values of the function argument and the corresponding values of (one or more versions of) the function.  
一个数据框至少有2列的值函数的参数和相应的值(一个或多个版本)的功能。


参数:argu
String. The name of the column of x that contains the values of the function argument.  
字符串。 x的列的名称中包含函数的参数的值。


参数:ylab
Either NULL, or an R language expression representing the mathematical name of the function. See Details.  
无论是NULL,或的R语言表达的数学函数的名称。查看详细信息。


参数:valu
String. The name of the column of x that should be taken as containing the function values, in cases where a single column is required.  
字符串。列x的名称应被视为包含的函数值,在需要情况下,单个列。


参数:fmla
Either NULL, or a formula specifying the default plotting behaviour. See Details.  
无论是NULL,或formula指定默认的策划行为。查看详细信息。


参数:alim
Optional. The default range of values of the function argument for which the function will be plotted. Numeric vector of length 2.  
可选。函数的参数值,该函数将被绘制的默认范围。数字矢量长度为2。


参数:labl
Optional. Plot labels for the columns of x. A vector of strings, with one entry for each column of x.  
可选。图标签的列x。一个字符串矢量,其中有一项为每一列x。


参数:desc
Optional. Descriptions of the columns of x. A vector of strings, with one entry for each column of x.  
可选。描述的列x。一个字符串矢量,其中有一项为每一列x。


参数:unitname
Optional. Name of the unit (usually a unit of length) in which the function argument is expressed. Either a single character string, or a vector of two character strings giving the singular and plural forms, respectively.  
可选。 (通常是一个单元的长度),在该函数的参数来表示的单元的名称。无论是单字符的字符串,或两个字符的字符串,分别给予单数和复数形式的向量。


参数:fname
Optional. The name of the function itself. A character string.  
可选。的名称本身的功能。一个字符串。


参数:yexp
Optional. Alternative form of ylab more suitable for annotating an axis of the plot. See Details.  
可选。 ylab注释轴的图更适合的另一种形式。查看详细信息。


Details

详细信息----------Details----------

This documentation is provided for experienced programmers who want to modify the internal behaviour of spatstat. Other users please see fv.object.
提供这个文件要修改的内部行为spatstat有经验的程序员。其他用户请看到fv.object。

The low-level function fv is used to create an object of class "fv" from raw numerical data.
低级别的功能fv用于创建对象的类"fv"原数值数据。

The data frame x contains the numerical data. It should have one column (typically but not necessarily named "r") giving the values of the function argument for which the function has been evaluated; and at least one other column, containing the corresponding values of the function.
的数据框x包含的数值的数据。它应该有一列(通常但不一定名为"r"),给该函数的参数的值,该功能已被评估;及其他列的至少一个,包含对应的值的函数。

Typically there is more than one column of function values. These columns typically give the values of different versions or estimates of the same function, for example, different estimates of the K function obtained using different edge corrections. However they may also contain the values of related functions such as the derivative or hazard rate.
通常情况下,有一个以上的列的函数值。这些列通常给予相同的功能的不同版本或估计值,例如,不同的估计K的函数得到的使用不同边缘校正。然而,它们还可以含有如衍生物或危险率的值的相关的功能。

argu specifies the name of the column of x that contains the values of the function argument (typically argu="r" but this is not compulsory).
argu指定名称的列x“”包含函数的参数的值(通常argu="r",“可是这是不是强制性的)。

valu specifies the name of another column that contains the "recommended" estimate of the function. It will be used to provide function values in those situations where a single column of data is required. For example, envelope computes its simulation envelopes using the recommended value of the summary function.
valu指定的名称,另一列包含“推荐”的功能估计。的单个列的数据需要在这些情况下,它将被用来提供函数值。例如,envelope计算其模拟的信封使用推荐值的汇总函数。

fmla specifies the default plotting behaviour. It should be a formula, or a string that can be converted to a formula. Variables in the formula are names of columns of x. See plot.fv for the interpretation of this formula.
fmla指定了默认的策划行为。它应该是一个公式,或一个字符串,它可以被转换为一个公式。公式中的变量名称的列x。见plot.fv这个公式的解释。

alim specifies the recommended range of the function argument. This is used in situations where statistical theory or statistical practice indicates that the computed estimates of the function are not trustworthy outside a certain range of values of the function argument. By default, plot.fv will restrict the plot to this range.
alim指定函数的参数的推荐范围。这是使用的情况下,统计理论和统计实践表明,计算出估计的功能是不值得信赖的外部函数的参数值在一定范围内。默认情况下,plot.fv会限制在此范围内的图。

fname is a string giving the name of the function itself. For example, the K function would have fname="K".
fname是一个字符串,给出的名称本身的功能。例如,K功能有fname="K"“。

ylab is a mathematical expression for the function value, used when labelling an axis of the plot, or when printing a description of the function. It should be an R language object.  For example the K function's mathematical name K(r) is rendered by ylab=substitute(K(r), NULL).
ylab是一个数学表达式的函数值,使用标签轴的图时,或当打印功能描述。这应该是一个R语言对象。例如,K“函数的数学名K(r)所呈现的ylab=substitute(K(r), NULL)。

If yexp is present, then ylab will be used only for printing, and yexp will be used for annotating axes in a plot. (Otherwise yexp defaults to ylab). For example the cross-type K function K[1,2](r) is rendered by something like ylab=substitute(Kcross[i,j](r), list(i=1,j=2)) and  yexp=substitute(Kcross[list(i,j)](r), list(i=1,j=2)) to get the most satisfactory behaviour.
如果yexp存在,那么ylab将仅用于印刷和yexp将用于标注轴的图。 (否则yexp默认为ylab)。例如,十字型K函数K[1,2](r)呈现类似ylab=substitute(Kcross[i,j](r), list(i=1,j=2))和yexp=substitute(Kcross[list(i,j)](r), list(i=1,j=2))得到最满意的行为。

labl is a character vector specifying plot labels for each column of x. These labels will appear on the plot axes (in non-default plots), legends and printed output. Entries in labl may contain the string "%s" which will be replaced by fname. For example the border-corrected estimate of the K function has label "%sbord(r)" which becomes "Kbord(r)".
labl是一个字符向量指定图的标签,为每一列x。这些标签会出现的图轴(非默认的图),传说和打印输出。如果在labl可能包含的字符串"%s"取而代之的将是fname。例如边界校正估计K功能的标签"%sbord(r)"成为"Kbord(r)"。

desc is a character vector containing intelligible explanations of each column of x. Entries in desc may contain the string "%s" which will be replaced by ylab. For example the border correction estimate of the K function has description "border correction estimate of %s".
desc是一个字符向量易懂的解释,每一列x。如果在desc可能包含的字符串"%s"取而代之的将是ylab。例如,边界校正估计K功能描述"border correction estimate of %s"。


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

An object of class "fv", see fv.object.
一个对象的类"fv"的,看到fv.object。


(作者)----------Author(s)----------


Adrian Baddeley
<a href="mailto:Adrian.Baddeley@csiro.au">Adrian.Baddeley@csiro.au</a>
<a href="http://www.maths.uwa.edu.au/~adrian/">http://www.maths.uwa.edu.au/~adrian/</a>
and Rolf Turner
<a href="mailto:r.turner@auckland.ac.nz">r.turner@auckland.ac.nz</a>




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

See plot.fv for plotting an "fv" object.
见plot.fv图"fv"对象。

See as.function.fv to convert an "fv" object to an R function.
见as.function.fv转换"fv"对象R的功能。

Use cbind.fv to combine several "fv" objects. Use bind.fv to glue additional columns onto an existing "fv" object.
使用cbind.fv结合几个"fv"对象。使用bind.fv到胶额外的列到现有的"fv"对象。

Undocumented functions for modifying an "fv" object include fvnames, fvnames<-, tweak.fv.entry and rebadge.fv.
无证功能修改的"fv"对象包括fvnames,fvnames<-,tweak.fv.entry和rebadge.fv。


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


  df <- data.frame(r=seq(0,5,by=0.1))
  df <- transform(df, a=pi*r^2, b=3*r^2)
  X <- fv(df, "r", substitute(A(r), NULL),
              "a", cbind(a, b) ~ r,
              alim=c(0,4),
              labl=c("r", "%s[true](r)", "%s[approx](r)"),
              desc=c("radius of circle",
                     "true area %s",
                     "rough area %s"),
              fname="A")
  X

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-14 13:20 , Processed in 0.028740 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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