protectTable(sdcTable)
protectTable()所属R语言包:sdcTable
protecting <a href="sdcProblem-class.html">sdcProblem-class</a> objects
保护的<a href="sdcProblem-class.html"> sdcProblem类</ a>的对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Function protectTable is used to protect primary sensitive table cells (that usually have been identified and set using primarySuppression). The function protects primary sensitive table cells according to the method that has been chosen and the parameters that have been set. Additional parameters that are used to control the protection algorithm are set using parameter ....
功能protectTable用于保护主敏感的表格单元格(即通常已经确定,并使用primarySuppression的)。该功能有效保护主敏感表单元,按照已选择的方法,该方法和已设置的参数。额外的参数,用于控制的保护算法设置使用参数...。
用法----------Usage----------
protectTable(object, method, ...)
参数----------Arguments----------
参数:object
a sdcProblem-class object that has created using makeProblem and has been modified by primarySuppression
一个sdcProblem-class对象已经使用makeProblem和创造的修改primarySuppression
参数:method
a character vector of length 1 specifying the algorithm that should be used to protect the primary sensitive table cells. Allowed values are:
长度为1的一个字符矢量指定应使用的算法,该算法保护主敏感的表格单元格。允许的值是:
OPT: protect the complete problem at once using a cut and branch algorithm. The optimal algorithm should be used for small problem-instances only.
OPT:保护完整的问题,在一次使用剪切和分支算法。小问题的情况下只应该用于优化算法。
HITAS: split the overall problem in smaller problems. These problems are protected using a top-down approach.
HITAS分割的整体问题小问题。使用自上而下的方法保护这些问题。
HYPERCUBE: protect the complete problem by protecting sub-tables with a fast heuristic that is based on finding and suppressing geometric structures (n-dimensional cubes) that are required to protect primary sensitive table cells.
HYPERCUBE:保护保护子表的基础上发现和制止几何结构(n维立方体)所需要的保护主要敏感的表格单元格的一个的快速启发式的,完整的问题。
SIMPLEPROTECT: heuristic, quick procedure which might be applied to very large problem instances </ul>
SIMPLEPROTECT:启发式,快速的程序可能被应用到非常大的问题实例</ ul>
参数:...
parameters used in the protection algorithm that has been selected. Parameters that can be changed are:
已被选择的保护算法中使用的参数。是可以改变的参数是:
general parameters include:
一般的参数包括:
verbose: logical vector of length 1 defining if verbose output should be produced. Parameter verbose defaults to 'FALSE'
verbose:逻辑向量长度为1的定义应详细输出。参数verbose默认为“假”
save: logical vector of length 1 defining if temporary results should be saved in the current working directory (TRUE) or not (FALSE). Parameter safe defaults to 'FALSE'
save:逻辑向量的长度为1,如果临时结果应保存在当前的工作目录(TRUE)或(FALSE)。参数safe默认为“假”
parameters used for HITAS|OPT procedures:
用于HITAS OPT程序的参数:
solver: character vector of length 1 defining the solver to be used. Currently available choices are limited to 'glpk'.
solver:字符长度为1的向量定义求解器使用。目前可提供的选择是有限的“GLPK。
timeLimit: numeric vector of length 1 (or NULL) defining a time limit in minutes after which the cut and branch algorithm should stop and return a possible non-optimal solution. Parameter safe has a default value of 'NULL'
timeLimit:数字矢量(或NULL),长度为1分钟的时间限制后的剪裁和分支算法应该停止,并返回一个可能的非最优的解决方案。参数safe有一个默认的值“NULL”
maxVars: a numeric vector of length 1 (or NULL) defining the maximum problem size in terms of decision variables for which an optimization should be tried. If the number of decision variables in the current problem are larger than parameter maxVars, only a possible non-optimal, heuristic solution is calculated. Parameter safe has a default value of 'NULL'
maxVars:一个数值向量的长度为1(或NULL)定义的最大问题大小,应该尝试的优化决策变量。如果在当前问题的决策变量的数量是大于参数maxVars,只有一个可能非最佳,启发式的计算解决方案。参数safe有一个默认的值“NULL”
fastSolution: logical vector of length 1 defining if or if not the cut and branch algorithm will be started or if the possibly non-optimal heuristic solution is returned independent of parameter maxVars. Parameter fastSolution has a default value of 'FALSE'
fastSolution:逻辑向量长度为1的定义,如果,如果不是切割和分支算法将启动,或者如果可能的非启发式优化解决方案独立的参数maxVars的返回。参数fastSolution有一个默认的值“FALSE”
fixVariables: logical vector of length 1 defining whether or not it should be tried to fix some variables to zero or one based on reduced costs early in the cut and branch algorithm. Parameter fixVariables has a default value of 'TRUE'
fixVariables:逻辑向量长度为1的定义是否应该试图解决一些变量的剪裁和分支算法早在降低成本的基础上的零次或一次。参数fixVariables有一个默认的值“TRUE”
approxPerc: numeric vector of length 1 that defines a percentage for which a integer solution of the cut and branch algorithm is accepted as optimal with respect to the upper bound given by the (relaxed) solution of the master problem. Its default value is set to '10'
approxPerc:数值向量的长度为1的整数解切割和分支算法被接受为最佳的相对于主问题(松弛)溶液通过给定的上限定义的百分比。它的默认值设置为10
parameters used for HYPERCUBE procedure:
超立方体程序中使用的参数:
protectionLevel: numeric vector of length 1 specifying the required protection level for the HYPERCUBE-procedure. Its default value is 80
protectionLevel:数字矢量的长度为1的超立方体程序指定所需的保护级别。它的默认值是80
suppMethod: character vector of length 1 defining the rule on how to select the 'optimal' cube to protect a single sensitive cells. Possible choices are:
suppMethod:字符长度为1的向量定义的规则如何选择“最佳”的立方体,以保护敏感的单元。可能的选择是:
minSupps: minimize the number of additional secondary suppressions (this is also the default setting).
minSupps:尽量减少额外的辅助镇压的数量(这也是默认设置)。
minSum: minimize the sum of counts of additional suppressed cells
minSum:尽量减少额外的抑制单元的计数总和
minSumLogs: minimize the log of the sum of additional suppressed cells
minSumLogs:其他抑制单元的总和最小化log
suppAdditionalQuader: logical vector of length 1 specfifying if additional cubes should be suppressed if any secondary suppressions in the 'optimal' cube are 'singletons'. Parameter suppAdditionalQuader has a default value of 'FALSE'
suppAdditionalQuader:逻辑向量的长度为1 specfifying如果额外的多维数据集,应抑制,如果任何辅助镇压的“最优”立方体“单身”。参数suppAdditionalQuader有一个默认的值“FALSE”
parameter used for protectLinkedTables():
参数用于protectLinkedTables():
maxIter: numeric vector of length 1 specifying the maximal number of interations that should be make while trying to protect common cells of two different tables. The default value of parameter maxIter is 10
maxIter:指定的最大数量的互动。互动数字矢量的长度为1,而应试图保护普通单元中的两个不同的表。默认值参数maxIter 10
</ul>
</ ul>
值----------Value----------
an safeObj-class object
safeObj-class对象
(作者)----------Author(s)----------
Bernhard Meindl <a href="mailto:bernhard.meindl@statistik.gv.at">bernhard.meindl@statistik.gv.at</a>
实例----------Examples----------
## Not run: [#不运行:]
# load problem (as it was created after performing primary suppression[负载问题(因为它被创建后执行的主要抑制]
# in the example of \code{\link{primarySuppression}})[在示例的\代码{\的链接{primarySuppression}})]
sp <- searchpaths()
fn <- paste(sp[grep("sdcTable", sp)], "/data/problemWithSupps.RData", sep="")
problem <- get(load(fn))
# protect the table using the 'HITAS' algorithm with verbose output[使用“HITAS算法详细的输出,保护表]
protectedData <- protectTable(problem, method='HITAS', verbose=TRUE)
# showing a summary[示出了摘要]
summary(protectedData)
# looking at the final table with result suppression pattern[在最后的表,结果抑制模式]
print(getInfo(protectedData, type='finalData'))
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|