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

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

[复制链接]
发表于 2012-9-30 09:54:10 | 显示全部楼层 |阅读模式
simple_triplet_matrix(slam)
simple_triplet_matrix()所属R语言包:slam

                                        Simple Triplet Matrix
                                         简单的三重矩阵

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

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

Data structures and operators for sparse matrices based on
稀疏矩阵的数据结构和运营商的基础上


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


simple_triplet_matrix(i, j, v, nrow = max(i), ncol = max(j), dimnames = NULL)
simple_triplet_zero_matrix(nrow, ncol = nrow, mode = "double")
simple_triplet_diag_matrix(v, nrow = length(v))

as.simple_triplet_matrix(x)
is.simple_triplet_matrix(x)



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

参数:i, j
Integer vectors of row and column indices, respectively.
整数向量的行和列指数,分别。


参数:v
Vector of values.
向量的值。


参数:nrow, ncol
Integer values specifying the number of rows and columns, respectively. Defaults are the maximum row and column indices, respectively.
的整数值指定的行和列的数目,分别。默认值是最大的行和列。


参数:dimnames
A dimnames attribute for the matrix: NULL or a list of length 2 giving the row and column names respectively.  An empty list is treated as NULL, and a list of length one as row names.  The list can be named, and the list names will be used as names for the dimensions.
Adimnames属性的矩阵:NULL或list长度为2分别给予行和列名。 NULL,和一个列表的长度为行名被视为一个空的列表。该列表可以被命名,列表中的名称将用作尺寸的名称。


参数:mode
Character string specifying the mode of the values.
字符的字符串指定的值的模式。


参数:x
An R object.
R对象。


Details

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

simple_triplet_matrix is a generator for a class of “lightweight” sparse matrices, “simply” represented by triplets (i, j, v) of row indices i, column indices j, and values v, respectively. simple_triplet_zero_matrix and simple_triplet_diag_matrix are convenience functions for the creation of empty and diagonal matrices.
simple_triplet_matrix是发电机一类的“轻量级”的稀疏矩阵,“简单”为代表的三胞胎(i, j, v)行指数i,列索引j,和值v“。 simple_triplet_zero_matrix和simple_triplet_diag_matrix是创造空和对角矩阵的便利功能。

Currently implemented operations include the addition, subtraction, multiplication and division of compatible simple triplet matrices, as well as the multiplication and division of a simple triplet matrix and a vector.  Comparisons of the elements of a simple triplet matrices with a number are also provided. In addition,  methods for indexing, combining by rows (rbind) and columns (cbind), transposing (t), concatenating (c), and detecting/extracting duplicated and unique rows are implemented.
目前已实现的业务包括加法,减法,乘法和除法的兼容简单的三重矩阵,以及一个简单的三线矩阵和向量的乘法和除法。还提供了一个简单的三重峰带数字矩阵的元素的比较。此外,索引方法,结合行(rbind)和列(cbind),移调(t),串联(c),并检测/提取复制独特的行实施。


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

simple_sparse_array for sparse arrays.
simple_sparse_array稀疏数组。


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


x <- matrix(c(1, 0, 0, 2), nrow = 2)
s <- as.simple_triplet_matrix(x)
identical(x, as.matrix(s))

simple_triplet_matrix(c(1, 4), c(1, 2), c(1, 2))
simple_triplet_zero_matrix(3)
simple_triplet_diag_matrix(1:3)

cbind(rbind(x, t(x)), rbind(x, x))

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-25 22:03 , Processed in 0.038106 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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