Mnumber-class(Rmpfr)
Mnumber-class()所属R语言包:Rmpfr
Class "Mnumber" and "mNumber" of "mpfr" and regular numbers and arrays from them
的类“Mnumber”和MPFR“,定期从他们的数字和数组的”mNumber“
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Classes "Mnumber" "mNumber" are class unions of "mpfr" and regular numbers and arrays from them.<br> Its purpose is for method dispatch, notably defining a cbind(...) method where ... contains objects of one of the member classes of "Mnumber".
类"Mnumber""mNumber"类"mpfr"和常规的数字阵列工会。参考其目的是为了调度方法,特别是定义cbind(...)方法 X>的的成员类...之一包含的对象。
Classes "mNumber" is considerably smaller is it does not contain "matrix" and "array" since these also extend "character" which is not really desirable for generalized numbers. It extends the simple "numericVector" class by mpfr* classes.
类"mNumber"是相当小的是它不包含"matrix"和"array"因为这也延长"character"这是不是真的需要广义的数字。它扩展了简单的"numericVector"类由mpfr*的类。
方法----------Methods----------
%*% signature(x = "mpfrMatrix", y = "Mnumber"): ...
%*%signature(x = "mpfrMatrix", y = "Mnumber"):...
crossprod signature(x = "mpfr", y = "Mnumber"): ...
crossprod signature(x = "mpfr", y = "Mnumber")...
tcrossprod signature(x = "Mnumber", y = "mpfr"): ...
tcrossprod signature(x = "Mnumber", y = "mpfr")...
etc. These are documented with the classes mpfr and or mpfrMatrix.
等,这些都记录类mpfr或mpfrMatrix。
参见----------See Also----------
the array_or_vector sub class; cbind-methods.
array_or_vector子类,“cbind-methods。
实例----------Examples----------
## "Mnumber" encompasses (i.e., "extends") quite a few[“Mnumber”包括(即“扩展”)不少]
## "vector / array - like" classes:[“矢量/阵列 - 如”类:]
showClass("Mnumber")
stopifnot(extends("mpfrMatrix", "Mnumber"),
extends("array", "Mnumber"))
Mnsub <- names(getClass("Mnumber")@subclasses)
(mNsub <- names(getClass("mNumber")@subclasses))
## mNumber has *one* subclass which is not in Mnumber:[“#mNumber * 1 *子类,这是不是在Mnumber:]
setdiff(mNsub, Mnsub)# namely "numericVector"[即“numericVector”]
## The following are only subclasses of "Mnumber", but not of "mNumber":[#以下是唯一的的子类“Mnumber”,,但不是“mNumber”:]
setdiff(Mnsub, mNsub)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|