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

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

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

                                        Compute Quadratic Forms
                                         计算二次型

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

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

Calculates certain quadratic forms of matrices.
计算一定的二次型的矩阵。


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


  sumouter(x, w)
  quadform(x, v)



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

参数:x
A matrix, whose rows are the vectors in the quadratic form.
一个矩阵,其行中的向量的二次型。


参数:w
Vector of weights
向量的权重


参数:v
Matrix determining the quadratic form
二次型的矩阵确定


Details

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

The matrix x will be interpreted as a collection of row vectors. The command sumouter computes the sum of the outer products of these vectors, weighted by the entries of w:
的矩阵x将被解释为一个集合的行矢量。命令sumouter计算这些向量的外积,加权条目w的总和:

where the sum is over all rows of x (after removing any rows containing NA or other non-finite values). The result is a p * p matrix where p = ncol(x).
其中求和是x(取出后含有NA或其他非有限值的任何行)的所有行。其结果是p * p矩阵,其中p = ncol(x)。

The command quadform evaluates the quadratic form, defined by the matrix v, for each of the row vectors of x:
命令quadform评估二次形式,定义的矩阵v,为每个行向量x:

The result y is a numeric vector of length n where n = nrow(x). If x[i,] contains NA or other non-finite values, then y[i] = NA.
结果y是一个数字矢量的长度n其中n = nrow(x)的。如果x[i,]NA或其他非限定值,那么y[i] = NA。


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

A vector or matrix.
一个向量或矩阵。


(作者)----------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>




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


  x <- matrix(1:12, 4, 3)
  dimnames(x) <- list(c("Wilma", "Fred", "Barney", "Betty"), letters[1:3])
  x

  w <- 4:1
  sumouter(x, w)
  v <- matrix(1, 3, 3)
  quadform(x, v)

  # See what happens with NA's[看看会发生什么与NA]
  x[3,2] <- NA
  sumouter(x, w)
  quadform(x, v)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-17 01:25 , Processed in 0.023153 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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