water.exec
Class Helpers

java.lang.Object
  extended by water.exec.Helpers

public class Helpers
extends java.lang.Object


Nested Class Summary
static class Helpers.ScallarCollector
           
 
Constructor Summary
Helpers()
           
 
Method Summary
static void assign(int pos, Key to, Expr.Result what)
          Assigns (copies) the what argument to the given key.
static void calculateSigma(Key key, int col)
          Calculates the second pass of column metadata for the given key.
static int checkedColumnIndex(ValueArray ary, Expr.Result from)
           
 void createVector(Key name, java.lang.String colName, double[] items)
          Creates a simple vector using the given values only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Helpers

public Helpers()
Method Detail

checkedColumnIndex

public static int checkedColumnIndex(ValueArray ary,
                                     Expr.Result from)

calculateSigma

public static void calculateSigma(Key key,
                                  int col)
Calculates the second pass of column metadata for the given key. Assumes that the min, max and mean are already calculated. gets the sigma

Parameters:
key -

assign

public static void assign(int pos,
                          Key to,
                          Expr.Result what)
                   throws EvaluationException
Assigns (copies) the what argument to the given key. TODO at the moment, only does deep copy.

Parameters:
to -
what -
Throws:
EvaluationException

createVector

public void createVector(Key name,
                         java.lang.String colName,
                         double[] items)
Creates a simple vector using the given values only.

Parameters:
name -
items -