| Constructor and Description |
|---|
BinarySparseDataset()
Constructor.
|
BinarySparseDataset(int ncols)
Constructor.
|
BinarySparseDataset(String name)
Constructor.
|
BinarySparseDataset(String name,
Attribute response)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Datum<int[]> datum)
Add a datum item into the dataset.
|
int |
get(int i,
int j)
Returns the value at entry (i, j) by binary search.
|
int |
ncols()
Returns the number of columns.
|
SparseMatrix |
toSparseMatrix()
Convert into Harwell-Boeing column-compressed sparse matrix format.
|
public BinarySparseDataset()
public BinarySparseDataset(String name)
name - the name of dataset.public BinarySparseDataset(String name, Attribute response)
name - the name of dataset.response - the attribute type of response variable.public BinarySparseDataset(int ncols)
ncols - the number of columns in the matrix.public int ncols()
public void add(Datum<int[]> datum)
public int get(int i,
int j)
i - the row index.j - the column index.public SparseMatrix toSparseMatrix()
Copyright © 2015. All rights reserved.