© 2006-2007 ETH Zurich

org.ximtec.igesture.algorithm.rubine
Class GestureClassHelper

java.lang.Object
  extended by org.ximtec.igesture.algorithm.rubine.GestureClassHelper
All Implemented Interfaces:
Runnable

public class GestureClassHelper
extends Object
implements Runnable

Comment

Version:
1.0 11.06.2008
Author:
Ueli Kurmann

Constructor Summary
GestureClassHelper(GestureClass gestureClass, RubineConfiguration configuration, CountDownLatch latch)
           
 
Method Summary
 void computeWeights(org.apache.commons.math.linear.RealMatrix inverse)
           
 org.apache.commons.math.linear.RealMatrix getCovarianceMatrix()
          Computes the covariance matrix for a given gesture class.
 GestureClass getGestureClass()
           
 double getInitialWeight()
           
 DoubleVector getMeanFeatureVector()
           
 int getNumberOfSamples()
           
 DoubleVector getWeights()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GestureClassHelper

public GestureClassHelper(GestureClass gestureClass,
                          RubineConfiguration configuration,
                          CountDownLatch latch)
Method Detail

run

public void run()
Specified by:
run in interface Runnable

getCovarianceMatrix

public org.apache.commons.math.linear.RealMatrix getCovarianceMatrix()
Computes the covariance matrix for a given gesture class. The covariance matrix is cached.

Parameters:
gestureClass - the gesture class to compute the covariance matrix.
Returns:
the covariance matrix of the gesture class.

getMeanFeatureVector

public DoubleVector getMeanFeatureVector()

getNumberOfSamples

public int getNumberOfSamples()

computeWeights

public void computeWeights(org.apache.commons.math.linear.RealMatrix inverse)

getInitialWeight

public double getInitialWeight()

getWeights

public DoubleVector getWeights()

getGestureClass

public GestureClass getGestureClass()

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.