public class PerformanceStats extends java.lang.Object implements AdditionalMeasureProducer, java.io.Serializable, RevisionHandler
Modifier and Type | Field and Description |
---|---|
double |
m_CoordCount
The number of coordinates looked at for
the current/last query.
|
double |
m_MaxC
The min and max coordinates(attributes) looked
at per query.
|
double |
m_MaxP
The min and max data points looked for a query by
the NNS algorithm.
|
double |
m_MinC
The min and max coordinates(attributes) looked
at per query.
|
double |
m_MinP
The min and max data points looked for a query by
the NNS algorithm.
|
double |
m_PointCount
The number of data points looked at
for the current/last query.
|
double |
m_SumC
The sum of coordinates/attributes looked at
for all the queries.
|
double |
m_SumP
The sum of data points looked
at for all the queries.
|
double |
m_SumSqC
The squared sum of coordinates/attributes looked at
for all the queries.
|
double |
m_SumSqP
The squared sum of data points looked
at for all the queries.
|
Constructor and Description |
---|
PerformanceStats()
default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Enumeration<java.lang.String> |
enumerateMeasures()
Returns an enumeration of the additional measure names.
|
double |
getMaxCoordsPerPoint()
Returns the maximum of coords per point.
|
double |
getMaxPointsVisited()
Returns the maximum of points visited.
|
double |
getMeanCoordsPerPoint()
Returns the mean of coords per point.
|
double |
getMeanPointsVisited()
Returns the mean of points visited.
|
double |
getMeasure(java.lang.String additionalMeasureName)
Returns the value of the named measure.
|
double |
getMinCoordsPerPoint()
Returns the minimum of coords per point.
|
double |
getMinPointsVisited()
Returns the minimum of points visited.
|
int |
getNumQueries()
Returns the number of queries.
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.String |
getStats()
Returns a string representation of the statistics.
|
double |
getStdDevCoordsPerPoint()
Returns the standard deviation of coords per point.
|
double |
getStdDevPointsVisited()
Returns the standard deviation of points visited.
|
double |
getTotalCoordsPerPoint()
Returns the total sum of coords per point.
|
double |
getTotalPointsVisited()
Returns the total number of points visited.
|
void |
incrCoordCount()
Increments the coordinate count
(number of coordinates/attributes
looked at).
|
void |
incrPointCount()
Increments the point count
(number of datapoints looked at).
|
void |
reset()
Resets all internal fields/counters.
|
void |
searchFinish()
Signals end of the nearest neighbour search.
|
void |
searchStart()
Signals start of the nearest neighbour search.
|
void |
updatePointCount(int n)
adds the given number to the point count.
|
public double m_MinP
public double m_MaxP
public double m_SumP
public double m_SumSqP
public double m_PointCount
public double m_MinC
public double m_MaxC
public double m_SumC
public double m_SumSqC
public double m_CoordCount
public void reset()
public void searchStart()
public void searchFinish()
public void incrPointCount()
public void incrCoordCount()
public void updatePointCount(int n)
n
- The number to add to the point count.public int getNumQueries()
public double getTotalPointsVisited()
public double getMeanPointsVisited()
public double getStdDevPointsVisited()
public double getMinPointsVisited()
public double getMaxPointsVisited()
public double getTotalCoordsPerPoint()
public double getMeanCoordsPerPoint()
public double getStdDevCoordsPerPoint()
public double getMinCoordsPerPoint()
public double getMaxCoordsPerPoint()
public java.util.Enumeration<java.lang.String> enumerateMeasures()
enumerateMeasures
in interface AdditionalMeasureProducer
public double getMeasure(java.lang.String additionalMeasureName) throws java.lang.IllegalArgumentException
getMeasure
in interface AdditionalMeasureProducer
additionalMeasureName
- The name of the measure to query for
its value.java.lang.IllegalArgumentException
- If the named measure is not
supported.public java.lang.String getStats()
public java.lang.String getRevision()
getRevision
in interface RevisionHandler