org.gcube.dataanalysis.ecoengine.utils
Class Transformations
java.lang.Object
org.gcube.dataanalysis.ecoengine.utils.Transformations
public class Transformations
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Transformations
public Transformations()
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 © 2013. All Rights Reserved.