inpro.features
Class EOTBins

java.lang.Object
  extended by inpro.features.EOTBins

public class EOTBins
extends java.lang.Object

class for binning time to turn-relevant units

Author:
timo the turn-relevant units can be defined relative to start-of-turn (SOT) and end-of-turn (EOT). for backwards compatibility, units can be measured in distance to eot alone

Field Summary
private static double[] EOT_BIN_ENDS
           
static java.lang.String[] EOT_BINS
           
private static double[] SOT_BIN_ENDS
           
static java.lang.String[] SOT_BINS
           
 
Constructor Summary
EOTBins()
           
 
Method Summary
static java.lang.String eotBin(double eot)
          finds the right bin for the given distance to EOT
static weka.core.Attribute eotBinsAttribute()
           
static void main(java.lang.String[] args)
           
static weka.core.Attribute turnBinsAttribute()
           
static weka.core.Attribute turnBinsAttribute(java.lang.String name)
           
static java.lang.String turnState(double sot, double eot)
          finds the right bin for the given distances to SOT and EOT
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOT_BINS

public static final java.lang.String[] SOT_BINS

SOT_BIN_ENDS

private static final double[] SOT_BIN_ENDS

EOT_BINS

public static final java.lang.String[] EOT_BINS

EOT_BIN_ENDS

private static final double[] EOT_BIN_ENDS
Constructor Detail

EOTBins

public EOTBins()
Method Detail

eotBinsAttribute

public static weka.core.Attribute eotBinsAttribute()

turnBinsAttribute

public static weka.core.Attribute turnBinsAttribute(java.lang.String name)

turnBinsAttribute

public static weka.core.Attribute turnBinsAttribute()

eotBin

public static java.lang.String eotBin(double eot)
finds the right bin for the given distance to EOT

Returns:
bin-name

turnState

public static java.lang.String turnState(double sot,
                                         double eot)
finds the right bin for the given distances to SOT and EOT

Parameters:
sot - distance to start of turn
eot - dist. to eot
Returns:
bin-name

main

public static void main(java.lang.String[] args)