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

R语言 SpatioTemporal包 dot.prod()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 13:03:28 | 显示全部楼层 |阅读模式
dot.prod(SpatioTemporal)
dot.prod()所属R语言包:SpatioTemporal

                                         Computes Inner Product and Squared 2-norm
                                         计算内积和平方2  - 范

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

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

dot.prod computes the inner (or dot/scalar) product between two vectors.
dot.prod计算两个向量之间的内部(或点/标量)的产品。

norm2 computes the squared 2-norm of all the elements in a matrix or vector.
norm2计算平方的2  - 范数矩阵或向量中的所有元素。


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


dot.prod(v1, v2)

norm2(v1)



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

参数:v1,v2
Two vectors
两个向量


Details

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

If the vectors are of unequal length dot.prod will give a warning and then truncates the longer vector, discarding any excess elements before the computations.
如果向量长度不等的dot.prod将给予警告,然后截断的时间越长的向量,丢弃任何多余的元素之前的计算。


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

dot.prod returns the inner product of v1 and v2. norm2 returns the squared 2-norm of all elements in v1.
dot.prod返回v1和v2的内积。 norm2返回的所有元素在V1的2  - 范数的平方。


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



Johan Lindstr枚m




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

Block matrices are created by make.sigma.B,  make.sigma.B.full and <br> make.sigma.nu.
分块矩阵创建的make.sigma.B,make.sigma.B.full和<br> make.sigma.nu。

Other block matrix functions makeCholBlock,  block.mult, calc.tF.times.mat, <br> calc.iS.X, and sumLogDiag.
其他分块矩阵的功能makeCholBlock,block.mult,calc.tF.times.mat,参考calc.iS.X,sumLogDiag。

This function is called by loglike.
此功能被称为loglike。


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


##Create two vectors of equal length[#创建的两个向量的长度相等。]
v1 <- rnorm(10)
v2 <- rnorm(10)

##compute the inner product between the vectors[#计算的向量之间的内积]
dot.prod(v1,v2)
##or[#]
sum(v1*v2)

##compute the square 2-norm of v1[#计算平方2  - 范数V1。]
norm2(v1)
##or[#]
dot.prod(v1,v1)
##or[#]
sum(v1*v1)

##If the vectors are of unequal length the longer vector[#如果向量长度不等的向量]
##gets truncated (with a warning). [#被截断(警告)。]
dot.prod(v1,c(v2,2))


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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-11 06:12 , Processed in 0.029077 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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