public class SVDimpute
extends java.lang.Object
Constructor and Description |
---|
SVDimpute(java.lang.String fileParam)
Creates a new object of SVDI based on the parameter file provided
|
Modifier and Type | Method and Description |
---|---|
protected void |
config_read(java.lang.String fileParam) |
protected void |
data2string(DenseMatrix mat,
java.lang.String[][] X,
InstanceSet IS)
Parse the DenseMatrix of INPUT real values to a String 2D array, ready for printing
to a file.
|
EV |
psings(DenseMatrix A,
int rmax)
Computes the rmax eigenvalues of a given matrix (with greater absolute value)
|
void |
run()
It runs the SVDI algorithm once the configuration has been readed
|
protected void |
write_results(java.lang.String output,
java.lang.String[][] X,
InstanceSet IS) |
public SVDimpute(java.lang.String fileParam)
Creates a new object of SVDI based on the parameter file provided
fileParam
- the path to the parameter filepublic void run()
It runs the SVDI algorithm once the configuration has been readed
public EV psings(DenseMatrix A, int rmax)
Computes the rmax eigenvalues of a given matrix (with greater absolute value)
A
- The matrix from which we want to compute the eigenvaluesrmax
- the maximum number of greatest eigenvalues obtainedprotected void config_read(java.lang.String fileParam)
protected void data2string(DenseMatrix mat, java.lang.String[][] X, InstanceSet IS)
mat
- The DenseMatrix with the input values in double formatX
- The output String matrix, ready to be printedIS
- The InstanceSet with the original values, used to obtain the OUTPUT valuesprotected void write_results(java.lang.String output, java.lang.String[][] X, InstanceSet IS)