public class BPCA
extends java.lang.Object
Constructor and Description |
---|
BPCA(java.lang.String fileParam)
Creates a new object of BPCA using the parameter file indicated
|
Modifier and Type | Method and Description |
---|---|
protected void |
config_read(java.lang.String fileParam)
Read the pattern file, and parse data into strings
|
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.
|
void |
run()
Runs the BPCA algorithm.
|
protected void |
write_results(java.lang.String output,
java.lang.String[][] X,
InstanceSet IS)
Write data matrix X to disk, in KEEL format
|
public BPCA(java.lang.String fileParam)
Creates a new object of BPCA using the parameter file indicated
fileParam
- The path to the parameter filepublic void run()
Runs the BPCA algorithm.
protected void config_read(java.lang.String fileParam)
fileParam
- Configuration file.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)
output
- output filename to write in.X
- data matrix to write.IS
- Instance set to take the header for the new file.