sbrt.kernel.math.geom.comp
Class CdHarComp.Results

java.lang.Object
  extended by sbrt.kernel.math.geom.comp.CdHarComp.Results
Enclosing class:
CdHarComp<V>

public class CdHarComp.Results
extends java.lang.Object

This class is used to represent the results of a random point computation.

Author:
This class was written and documented by Jeremiah Wright while in the Wagner lab.

Method Summary
 int changedVariables()
          Returns the number of variables whose values are different than they were in the previous point.
 java.util.Set<V> getChangedVariables()
          Returns the variables whose values are different than they were in the previous point.
 UnmodifiableMap<V,java.lang.Double> getPoint()
          Returns the random interior point that was computed.
 UnmodifiableSet<V> getUnchangedVariables()
          Returns the variables whose values are the same as they were in the previous point.
 int unchangedVariables()
          Returns the number of variables whose values are the same as they were in the previous point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPoint

public UnmodifiableMap<V,java.lang.Double> getPoint()
Returns the random interior point that was computed.

Returns:
the random interior point that was computed.

getChangedVariables

public java.util.Set<V> getChangedVariables()
Returns the variables whose values are different than they were in the previous point. Ideally, all of the variables of the polytope are present in this set.

Returns:
the variables whose values are different than they were in the previous point.

getUnchangedVariables

public UnmodifiableSet<V> getUnchangedVariables()
Returns the variables whose values are the same as they were in the previous point. Ideally, this set should be empty. If it isn't, it could mean the random walker is stuck in a corner.

Returns:
the variables whose values are the same as they were in the previous point.

changedVariables

public int changedVariables()
Returns the number of variables whose values are different than they were in the previous point. Ideally, this number should equal the total number of variables in the convex polytope.

Returns:
the number of variables whose values are different than they were in the previous point.

unchangedVariables

public int unchangedVariables()
Returns the number of variables whose values are the same as they were in the previous point. Ideally, this number should equal 0.

Returns:
the number of variables whose values are the same as they were in the previous point.