org.imemex.functions.impl
Class BasicSystemFunctions.Helper

java.lang.Object
  extended by org.imemex.functions.impl.BasicSystemFunctions.Helper
Enclosing interface:
BasicSystemFunctions

public abstract static class BasicSystemFunctions.Helper
extends java.lang.Object


Constructor Summary
BasicSystemFunctions.Helper()
           
 
Method Summary
static double nRoot(int n, double a)
           
static double sim(java.lang.String s1, java.lang.String s2)
          computes similarity of two strings
uses the Levenshtein Distance algorithm
static java.util.Date today(int n)
           
static java.util.Date year(int year)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicSystemFunctions.Helper

public BasicSystemFunctions.Helper()
Method Detail

today

public static java.util.Date today(int n)

year

public static java.util.Date year(int year)

nRoot

public static double nRoot(int n,
                           double a)

sim

public static double sim(java.lang.String s1,
                         java.lang.String s2)
computes similarity of two strings
uses the Levenshtein Distance algorithm

Parameters:
s1 -
s2 -
Returns:
normalized score [0,1]