com.dreizak.miniball.highdim
Class Quality

java.lang.Object
  extended by com.dreizak.miniball.highdim.Quality

public final class Quality
extends java.lang.Object

Information about the quality of the computed ball.


Method Summary
 int getIterations()
          The number of iterations that the algorithm needed to compute the miniball.
 double getMaxOverlength()
          The maximal over-length of a point from the input set, relative to the computed miniball's radius.
 double getMaxUnderlength()
          The maximal under-length of a point from the input set, relative to the computed miniball's radius.
 double getMinConvexCoefficient()
          A measure for the minimality of the computed ball.
 double getQrInconsistency()
          A measure for the quality of the internally used support points.
 int getSupportSize()
          The size of the support.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getQrInconsistency

public final double getQrInconsistency()
A measure for the quality of the internally used support points.

The returned number should in theory be zero (but may be non-zero due to rounding errors).


getMinConvexCoefficient

public final double getMinConvexCoefficient()
A measure for the minimality of the computed ball. The returned number should in theory be non-zero and positive. Due to rounding errors, it may be negative.


getMaxOverlength

public final double getMaxOverlength()
The maximal over-length of a point from the input set, relative to the computed miniball's radius.

For each point p from the input point set, it is computed how far it is outside the miniball ("over-length"). The returned number is the maximal such over-length, divided by the radius of the computed miniball.

Notice that getMaxOverlength() == 0 if and only if all points are contained in the miniball.

Returns:
the maximal over-length, a number ≥ 0

getMaxUnderlength

public final double getMaxUnderlength()
The maximal under-length of a point from the input set, relative to the computed miniball's radius.

For each point p from the input point set, it is computed how far one has to walk from this point towards the boundary of the miniball ("under-length"). The returned number is the maximal such under-length, divided by the radius of the computed miniball.

Notice that in theory getMaxUnderlength() should be zero, otherwise the computed miniball is enclosing but not minimal.

Returns:
the maximal under-length, a number ≥ 0

getIterations

public final int getIterations()
The number of iterations that the algorithm needed to compute the miniball.

Returns:
number of iterations

getSupportSize

public final int getSupportSize()
The size of the support.

Refer to the documentation of Miniball.support() for more information on the support.

Returns:
size of the support

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2013. All Rights Reserved.