data, DATASET_HAS_NO_RESPONSE, description, name, response, RESPONSE_NOT_NOMINAL, RESPONSE_NOT_NUMERIC| Constructor and Description |
|---|
BinarySparseDataset()
Constructor.
|
BinarySparseDataset(int ncols)
Constructor.
|
BinarySparseDataset(java.lang.String name)
Constructor.
|
BinarySparseDataset(java.lang.String name,
Attribute response)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Datum<int[]> |
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.
|
smile.math.matrix.SparseMatrix |
toSparseMatrix()
Convert into Harwell-Boeing column-compressed sparse matrix format.
|
add, add, add, add, add, data, get, getDescription, getName, iterator, labels, remove, response, responseAttribute, setDescription, setName, size, toArray, toArray, toArray, toArray, toArray, ypublic BinarySparseDataset()
public BinarySparseDataset(java.lang.String name)
name - the name of dataset.public BinarySparseDataset(java.lang.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 int get(int i,
int j)
i - the row index.j - the column index.public smile.math.matrix.SparseMatrix toSparseMatrix()