with.fv(spatstat)
with.fv()所属R语言包:spatstat
Evaluate an Expression in a Function Table
在功能表中计算表达式的值
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Evaluate an R expression in a function value table (object of class "fv").
评估一个R表达的一个函数值表(对象类"fv"“)。
用法----------Usage----------
## S3 method for class 'fv'
with(data, expr, ..., drop = TRUE)
参数----------Arguments----------
参数:data
A function value table (object of class "fv") in which the expression will be evaluated.
类的对象的函数值表("fv"),其中的表达式将被评估。
参数:expr
The expression to be evaluated. An R language expression, which may involve the names of columns in data, the special abbreviations ., .x and .y, and global constants or functions.
的表达进行评估。 R的语言表达,这可能涉及data,特殊的缩写.,.x和.y,和全局常量或函数中的列的名字。
参数:...
Ignored.
忽略。
参数:drop
Logical value. If the result of evaluating the expression expr is a vector (rather than a matrix or data frame) then the result will be returned as a vector if drop=TRUE. Otherwise it will be returned as another function value table (object of class "fv").
逻辑值。的评估的表达expr的如果结果是一个向量(而不是一个矩阵或数据框),然后将返回的结果作为一个向量,如果drop=TRUE。否则将返回作为另一个函数值表(对象类"fv"“)。
Details
详细信息----------Details----------
This is a method for the generic command with for an object of class "fv" (function value table).
这是一个通用的命令with对象的类"fv"(函数值表)的方法。
An object of class "fv" is a convenient way of storing and plotting several different estimates of the same function. It is effectively a data frame with extra attributes. See fv.object for further explanation.
一个对象的类"fv"的可以很方便地存储和绘制几种不同的估计相同的功能。它实际上是一个数据框额外的属性。见fv.object作进一步的解释。
This command makes it possible to perform computations that involve different estimates of the same function. For example we use it to compute the arithmetic difference between two different edge-corrected estimates of the K function of a point pattern.
此命令使人们有可能涉及不同的估计相同的功能来进行计算。例如,我们用它来计算的算术差K功能的点模式在两个不同的边缘校正估计。
The argument expr should be an R language expression. The expression may involve
参数expr应该是的R语言表达。的表达可能涉及
the name of any column in data, referring to one of the estimates of the function;
名称任何列在data,指的是估计的功能之一;
the symbol . which stands for all the available estimates of the function;
符号.代表所有可用的功能估计;
the symbol .y which stands for the recommended estimate of the function (in an "fv" object, one of the estimates is always identified as the recommended estimate);
符号.y表示的函数(在一个"fv"对象推荐的估计,估计的是,总是确定为推荐的估计);
the symbol .x which stands for the argument of the function;
符号.x代表函数的参数;
global constants or functions.
全局常量或功能。
See the Examples.
请参阅范例。
The expression should be capable of handling vectors and matrices. If the result of evaluating the expression is a matrix or data frame, then it is returned as a new function value table (object of class "fv"). If the result of evaluation is a vector and drop=TRUE then the result is returned as a vector.
的表达应该是能够处理向量和矩阵。如果计算表达式的结果是一个矩阵或数据框,然后返回一个新的函数值表(对象类"fv"“)。如果评价的结果是一个向量和drop=TRUE然后将结果作为一个向量返回。
To perform calculations involving several objects of class "fv", use eval.fv.
为了进行计算,涉及多个对象的类"fv",在使用eval.fv。
值----------Value----------
Either a function value table (object of class "fv") or a vector.
无论是函数值表(类"fv")或矢量对象。
(作者)----------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----------
with, fv.object, eval.fv, Kest
with,fv.object,eval.fv,Kest
实例----------Examples----------
# compute 4 estimates of the K function[计算估计的K功能]
X <- rpoispp(42)
K <- Kest(X)
plot(K)
# derive 4 estimates of the L function L(r) = sqrt(K(r)/pi)[得到估计的L函数L(R)= SQRT(K(R)/ PI)]
L <- with(K, sqrt(./pi))
plot(L)
# compute 4 estimates of V(r) = L(r)/r[计算估计的V(R)= L(R)/ R]
V <- with(L, ./.x)
plot(V)
# compute the maximum absolute difference between[计算的最大绝对差值]
# the isotropic and translation correction estimates of K(r)[的各向同性和翻译校正估计的K相关(r)的]
D <- with(K, max(abs(iso - trans)))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|