类 PerformanceStats

java.lang.Object
weka.core.neighboursearch.PerformanceStats
所有已实现的接口:
Serializable, AdditionalMeasureProducer, RevisionHandler
直接已知子类:
TreePerformanceStats

public class PerformanceStats extends Object implements AdditionalMeasureProducer, Serializable, RevisionHandler
The class that measures the performance of a nearest neighbour search (NNS) algorithm.
版本:
$Revision: 1.2 $
作者:
Ashraf M. Kibriya (amk14[at-the-rate]cs[dot]waikato[dot]ac[dot]nz)
另请参阅:
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    double
    The number of coordinates looked at for the current/last query.
    double
    The min and max coordinates(attributes) looked at per query.
    double
    The min and max data points looked for a query by the NNS algorithm.
    double
    The min and max coordinates(attributes) looked at per query.
    double
    The min and max data points looked for a query by the NNS algorithm.
    double
    The number of data points looked at for the current/last query.
    double
    The sum of coordinates/attributes looked at for all the queries.
    double
    The sum of data points looked at for all the queries.
    double
    The squared sum of coordinates/attributes looked at for all the queries.
    double
    The squared sum of data points looked at for all the queries.
  • 构造器概要

    构造器
    构造器
    说明
    default constructor.
  • 方法概要

    修饰符和类型
    方法
    说明
    Returns an enumeration of the additional measure names.
    double
    Returns the maximum of coords per point.
    double
    Returns the maximum of points visited.
    double
    Returns the mean of coords per point.
    double
    Returns the mean of points visited.
    double
    getMeasure(String additionalMeasureName)
    Returns the value of the named measure.
    double
    Returns the minimum of coords per point.
    double
    Returns the minimum of points visited.
    int
    Returns the number of queries.
    Returns the revision string.
    Returns a string representation of the statistics.
    double
    Returns the standard deviation of coords per point.
    double
    Returns the standard deviation of points visited.
    double
    Returns the total sum of coords per point.
    double
    Returns the total number of points visited.
    void
    Increments the coordinate count (number of coordinates/attributes looked at).
    void
    Increments the point count (number of datapoints looked at).
    void
    Resets all internal fields/counters.
    void
    Signals end of the nearest neighbour search.
    void
    Signals start of the nearest neighbour search.
    void
    adds the given number to the point count.

    从类继承的方法 java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • m_MinP

      public double m_MinP
      The min and max data points looked for a query by the NNS algorithm.
    • m_MaxP

      public double m_MaxP
      The min and max data points looked for a query by the NNS algorithm.
    • m_SumP

      public double m_SumP
      The sum of data points looked at for all the queries.
    • m_SumSqP

      public double m_SumSqP
      The squared sum of data points looked at for all the queries.
    • m_PointCount

      public double m_PointCount
      The number of data points looked at for the current/last query.
    • m_MinC

      public double m_MinC
      The min and max coordinates(attributes) looked at per query.
    • m_MaxC

      public double m_MaxC
      The min and max coordinates(attributes) looked at per query.
    • m_SumC

      public double m_SumC
      The sum of coordinates/attributes looked at for all the queries.
    • m_SumSqC

      public double m_SumSqC
      The squared sum of coordinates/attributes looked at for all the queries.
    • m_CoordCount

      public double m_CoordCount
      The number of coordinates looked at for the current/last query.
  • 构造器详细资料

    • PerformanceStats

      public PerformanceStats()
      default constructor.
  • 方法详细资料

    • reset

      public void reset()
      Resets all internal fields/counters.
    • searchStart

      public void searchStart()
      Signals start of the nearest neighbour search. Initializes the stats object.
    • searchFinish

      public void searchFinish()
      Signals end of the nearest neighbour search. Calculates the statistics for the search.
    • incrPointCount

      public void incrPointCount()
      Increments the point count (number of datapoints looked at).
    • incrCoordCount

      public void incrCoordCount()
      Increments the coordinate count (number of coordinates/attributes looked at).
    • updatePointCount

      public void updatePointCount(int n)
      adds the given number to the point count.
      参数:
      n - The number to add to the point count.
    • getNumQueries

      public int getNumQueries()
      Returns the number of queries.
      返回:
      The number of queries.
    • getTotalPointsVisited

      public double getTotalPointsVisited()
      Returns the total number of points visited.
      返回:
      The total number.
    • getMeanPointsVisited

      public double getMeanPointsVisited()
      Returns the mean of points visited.
      返回:
      The mean points visited.
    • getStdDevPointsVisited

      public double getStdDevPointsVisited()
      Returns the standard deviation of points visited.
      返回:
      The standard deviation.
    • getMinPointsVisited

      public double getMinPointsVisited()
      Returns the minimum of points visited.
      返回:
      The minimum.
    • getMaxPointsVisited

      public double getMaxPointsVisited()
      Returns the maximum of points visited.
      返回:
      The maximum.
    • getTotalCoordsPerPoint

      public double getTotalCoordsPerPoint()
      Returns the total sum of coords per point.
      返回:
      The total per point.
    • getMeanCoordsPerPoint

      public double getMeanCoordsPerPoint()
      Returns the mean of coords per point.
      返回:
      The mean.
    • getStdDevCoordsPerPoint

      public double getStdDevCoordsPerPoint()
      Returns the standard deviation of coords per point.
      返回:
      The standard deviation.
    • getMinCoordsPerPoint

      public double getMinCoordsPerPoint()
      Returns the minimum of coords per point.
      返回:
      The minimum.
    • getMaxCoordsPerPoint

      public double getMaxCoordsPerPoint()
      Returns the maximum of coords per point.
      返回:
      The maximum.
    • enumerateMeasures

      public Enumeration enumerateMeasures()
      Returns an enumeration of the additional measure names.
      指定者:
      enumerateMeasures 在接口中 AdditionalMeasureProducer
      返回:
      An enumeration of the measure names.
    • getMeasure

      public double getMeasure(String additionalMeasureName) throws IllegalArgumentException
      Returns the value of the named measure.
      指定者:
      getMeasure 在接口中 AdditionalMeasureProducer
      参数:
      additionalMeasureName - The name of the measure to query for its value.
      返回:
      The value of the named measure.
      抛出:
      IllegalArgumentException - If the named measure is not supported.
    • getStats

      public String getStats()
      Returns a string representation of the statistics.
      返回:
      The statistics as string.
    • getRevision

      public String getRevision()
      Returns the revision string.
      指定者:
      getRevision 在接口中 RevisionHandler
      返回:
      the revision