org.gcube.dataanalysis.ecoengine.utils
Class Operations

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

public class Operations
extends Object


Field Summary
 double[] means
           
 double[] variances
           
 
Constructor Summary
Operations()
           
 
Method Summary
static double[] calcFrequencies(double[] interval, double[] points)
           
static int calcNumOfRepresentativeElements(int numberOfElements, int minimumNumberToTake)
           
static int chunkize(int numberOfElements, int partitionFactor)
           
static double getMax(double[] points)
           
static int getMax(int[] points)
           
static double getMin(double[] points)
           
static int getMin(int[] points)
           
static boolean intervalContainsPoints(double min, double max, double[] points)
           
static double[] inverseParabol(double a, double b, double c, double y)
           
static double[] linearInterpolation(double el1, double el2, int intervals)
           
static double logaritmicTransformation(double y)
           
static void main(String[] args)
           
static void main1(String[] args)
           
static double[] normalizeFrequencies(double[] frequencies, int numberOfPoints)
           
static double[] parabolicInterpolation(double startP, double endP, int intervals)
           
static double scalarProduct(double[] a, double[] b)
           
 double[][] standardize(double[][] matrix)
           
 double[][] standardize(double[][] matrix, double[] meansVec, double[] variancesVec)
           
static double sumVector(double[] a)
           
static int[] takeChunks(int numberOfElements, int partitionFactor)
           
static double[] uniformDivide(double max, double min, double[] points)
           
static double[] vectorialAbsoluteDifference(double[] a, double[] b)
           
static double[] vectorialDifference(double[] a, double[] b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

means

public double[] means

variances

public double[] variances
Constructor Detail

Operations

public Operations()
Method Detail

scalarProduct

public static double scalarProduct(double[] a,
                                   double[] b)

sumVector

public static double sumVector(double[] a)

vectorialDifference

public static double[] vectorialDifference(double[] a,
                                           double[] b)

vectorialAbsoluteDifference

public static double[] vectorialAbsoluteDifference(double[] a,
                                                   double[] b)

getMax

public static double getMax(double[] points)

getMax

public static int getMax(int[] points)

getMin

public static int getMin(int[] points)

getMin

public static double getMin(double[] points)

calcFrequencies

public static double[] calcFrequencies(double[] interval,
                                       double[] points)

normalizeFrequencies

public static double[] normalizeFrequencies(double[] frequencies,
                                            int numberOfPoints)

intervalContainsPoints

public static boolean intervalContainsPoints(double min,
                                             double max,
                                             double[] points)

uniformDivide

public static double[] uniformDivide(double max,
                                     double min,
                                     double[] points)

standardize

public double[][] standardize(double[][] matrix)

standardize

public double[][] standardize(double[][] matrix,
                              double[] meansVec,
                              double[] variancesVec)

calcNumOfRepresentativeElements

public static int calcNumOfRepresentativeElements(int numberOfElements,
                                                  int minimumNumberToTake)

linearInterpolation

public static double[] linearInterpolation(double el1,
                                           double el2,
                                           int intervals)

inverseParabol

public static double[] inverseParabol(double a,
                                      double b,
                                      double c,
                                      double y)

logaritmicTransformation

public static double logaritmicTransformation(double y)

parabolicInterpolation

public static double[] parabolicInterpolation(double startP,
                                              double endP,
                                              int intervals)

main1

public static void main1(String[] args)

main

public static void main(String[] args)

takeChunks

public static int[] takeChunks(int numberOfElements,
                               int partitionFactor)

chunkize

public static int chunkize(int numberOfElements,
                           int partitionFactor)


Copyright © 2013. All Rights Reserved.