tables

This is a tool to allow you to import data (in seemingly-table-like format) and ask questions, such as sum, median, mean, etc. about it.

files

mactables.app.zip    ( hint: unzip it first )
windozetables.exe
jartables.jar
sourcetables.tar.gz
javadocsapi

usage

extending

Extending this system is easy. To do so put instances of Fold on your classpath and start up. Fold looks like this.

interface Fold {
  String name();
  Object fold(List values);
}

There are also some utility classes, such as AbstractFold and NumericFold, for a complete list see the javadocs. A simple implementation is sum:

public class Sum extends NumericFold {
  double doFold(double[] vals) {
    double res = 0;
    for (int i=0; i<vals.length; i++) res += vals[i];
    return res;
  }
}