edu.washington.cs.supple.render.utility
Class DistanceCalculator

java.lang.Object
  extended byedu.washington.cs.supple.render.utility.DistanceCalculator

public class DistanceCalculator
extends java.lang.Object

Author:
kgajos This class contains utilities for calculating geometrical distances between constraints and solutions

Constructor Summary
DistanceCalculator()
           
 
Method Summary
static double getDistance(FactorConstraint constraint, FactoredCostFunctionState state)
          Computes the shortest distance between the hyperplane of the constraint and the current solution point
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistanceCalculator

public DistanceCalculator()
Method Detail

getDistance

public static double getDistance(FactorConstraint constraint,
                                 FactoredCostFunctionState state)
Computes the shortest distance between the hyperplane of the constraint and the current solution point

Parameters:
constraint - constraint
state - current state
Returns: