org.gcube.dataanalysis.ecoengine.utils
Class Transformations

java.lang.Object
  extended by org.gcube.dataanalysis.ecoengine.utils.Transformations

public class Transformations
extends Object


Constructor Summary
Transformations()
           
 
Method Summary
static void dumpConfig(String pathToFile, AlgorithmConfiguration config)
           
static void dumpObjectToFile(String file, Object toWrite)
           
static double[][] exampleSet2Matrix(com.rapidminer.example.ExampleSet set)
           
static double[] getColumn(int index, double[][] matrix)
           
static Object getObjectFromFile(String file)
           
static double indexString(String string)
           
static void main(String[] args)
           
static com.rapidminer.example.ExampleSet matrix2ExampleSet(double[][] sampleVectors)
           
static double[][] mergeMatrixes(double[][] matrix1, double[][] matrix2)
           
static AlgorithmConfiguration restoreConfig(String configFile)
           
static void substColumn(double[] column, int index, double[][] matrix)
           
static double[][] traspose(double[][] matrix)
           
static String vector2String(double[] vector)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transformations

public Transformations()
Method Detail

matrix2ExampleSet

public static com.rapidminer.example.ExampleSet matrix2ExampleSet(double[][] sampleVectors)

exampleSet2Matrix

public static double[][] exampleSet2Matrix(com.rapidminer.example.ExampleSet set)

traspose

public static double[][] traspose(double[][] matrix)

getColumn

public static double[] getColumn(int index,
                                 double[][] matrix)

substColumn

public static void substColumn(double[] column,
                               int index,
                               double[][] matrix)

mergeMatrixes

public static double[][] mergeMatrixes(double[][] matrix1,
                                       double[][] matrix2)

vector2String

public static String vector2String(double[] vector)

getObjectFromFile

public static Object getObjectFromFile(String file)
                                throws Exception
Throws:
Exception

dumpObjectToFile

public static void dumpObjectToFile(String file,
                                    Object toWrite)
                             throws Exception
Throws:
Exception

dumpConfig

public static void dumpConfig(String pathToFile,
                              AlgorithmConfiguration config)
                       throws Exception
Throws:
Exception

restoreConfig

public static AlgorithmConfiguration restoreConfig(String configFile)
                                            throws Exception
Throws:
Exception

indexString

public static double indexString(String string)

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2012. All Rights Reserved.