public class TripleTableGenerator
extends java.lang.Object
构造器和说明 |
---|
TripleTableGenerator() |
限定符和类型 | 方法和说明 |
---|---|
static void |
generateOrdinaryMatrix(edu.sysu.pmglab.container.File outputFile,
int rowNum,
int columnNum,
int fieldNum)
生成普通矩阵
|
static void |
generateSparseMatrix(edu.sysu.pmglab.container.File outputFile,
int rowNum,
int columnNum,
int fieldNum,
double missingRare)
生成普通矩阵
|
static void |
generateSymmetryMatrix(edu.sysu.pmglab.container.File outputFile,
int elementNum,
int fieldNum)
生成对称矩阵
|
public static void generateSparseMatrix(edu.sysu.pmglab.container.File outputFile, int rowNum, int columnNum, int fieldNum, double missingRare) throws java.io.IOException
outputFile
- 输出文件对象rowNum
- 矩阵行数columnNum
- 矩阵列数fieldNum
- 矩阵包含的字段数missingRare
- 缺失率java.io.IOException
- IO 异常public static void generateSymmetryMatrix(edu.sysu.pmglab.container.File outputFile, int elementNum, int fieldNum) throws java.io.IOException
outputFile
- 输出文件对象elementNum
- 矩阵元素个数fieldNum
- 矩阵包含的字段数java.io.IOException
- IO 异常public static void generateOrdinaryMatrix(edu.sysu.pmglab.container.File outputFile, int rowNum, int columnNum, int fieldNum) throws java.io.IOException
outputFile
- 输出文件对象rowNum
- 矩阵行数columnNum
- 矩阵列数fieldNum
- 矩阵包含的字段数java.io.IOException
- IO 异常