KBivQ(sparr)
KBivQ()所属R语言包:sparr
Standard bivariate quartic (biweight) kernel
标准二元四次方(biweight)的内核
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Evaluates the standard bivariate quartic (biweight) kernel function at specified values, for either the spherical or product derivation of the function.
评估的标准二元四次(biweight)的内核函数在指定的值,的球形或产品的推导的功能。
用法----------Usage----------
KBivQ(X,type="spher")
参数----------Arguments----------
参数:X
A numeric vector of length 2 or a data frame with 2 columns.
甲数值向量的长度为2个或2列的数据框。
参数:type
A character string. <table summary="Rd table"> <tr> <td align="left"> "spher" </td><td align="right"> (default) selects spherical method of calculating the bivariate quartic kernel function</td> </tr> <tr> <td align="left"> "prod" </td><td align="right"> uses the product approach to calculating the function </td> </tr> </table>
一个字符串。 <table summary="Rd table"> <TR> <td ALIGN="LEFT">"spher" </ TD> <td align="right">(默认)选择球形的二元四次内核函数的计算方法</ TD> </ TR> <TR> <td ALIGN="LEFT"> "prod" </ TD> <td align="right">使用产品的方法来计算函数</ TD> </ TR> </ TABLE>
Details
详细信息----------Details----------
If X is a vector of length 2, then the two components X[1] and X[2] are taken to be the x and y coordinates respectively. For multiple evaluations at differing coordinates, X must be a data frame with X[,1] and X[,2] as the corresponding pairs of x and y coordinates respectively.
如果X是一个向量的长度为2,然后这两个组件X[1]和X[2]采取的x坐标和y坐标分别。对于在不同的坐标的多个评价,X必须与X[,1]和X[,2]分别为x和y坐标的相应对的数据框。
Unlike the bivariate Gaussian kernel, it is necessary to specify the method of extending the univariate quartic kernel to the bivariate case; this can be done in two different ways, one way resulting in a slightly different kernel to the other. An explanation of these "spherical" and "product" approaches is given in Wand and Jones (1995).
不同于的二元高斯内核,它是必要的指定延伸的二元的情况下的单变量的四次内核的方法,这是可以做到在两种不同的方式的一种方法得到的在一个稍微不同的其他内核。这些“球状”和“产品”的方法的解释给出在魔杖和Jones(1995)。
值----------Value----------
A single numeric value if X is a vector, or nrow(X) values if X is a data frame, giving the result of the standard bivariate quartic kernel at the specified coordinate(s) for the elected function derivation type.
一个单一的数值,如果X是一个向量,或nrow(X)值X是一个数据框,在指定的坐标(s)为标准的二元四次内核的结果选举产生的函数的求导类型。
(作者)----------Author(s)----------
T.M. Davies
参考文献----------References----------
实例----------Examples----------
KBivQ(c(0.1,0.4))
x <- y <- seq(-0.9,0.9,length=50)
z.spher <- KBivQ(data.frame(cbind(sort(rep(x,50)), rep(y,50))))
z.prod <- KBivQ(data.frame(cbind(sort(rep(x,50)), rep(y,50))), "prod")
par(mfrow=c(1,2))
contour(x, y, matrix(z.spher, 50, 50, byrow = TRUE),
main = "bivariate quartic kernel (spherical)")
contour(x, y, matrix(z.prod, 50, 50, byrow=TRUE),
main = "bivariate quartic kernel (product)")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|