edu.upc.dama.dex.core
Class Graph.AttributeStats

java.lang.Object
  extended by edu.upc.dama.dex.core.Graph.AttributeStats
Enclosing class:
Graph

public static class Graph.AttributeStats
extends java.lang.Object

Attribute statistics.


Field Summary
 long distinct
          Number of distinct values.
 Value max
          Maximum existing value.
 double mean
          Mean or average Sum of all Values divided by the number of observations.
 double median
          Median Middle value that separates the higher half from the lower.
 Value min
          Minimum existing value.
 Value mode
          Most frequent Value.
 long modeCount
          Number of objects with a Value equal to Graph.AttributeStats.mode, that is the most frequent Value.
 long nil
          Number of objects without a Value for the attribute.
 long total
          Number of objects with a Value for the attribute.
 double variance
          Variance.
 
Constructor Summary
Graph.AttributeStats()
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

total

public long total
Number of objects with a Value for the attribute.


nil

public long nil
Number of objects without a Value for the attribute.


distinct

public long distinct
Number of distinct values.


min

public Value min
Minimum existing value.


max

public Value max
Maximum existing value.


mode

public Value mode
Most frequent Value.


modeCount

public long modeCount
Number of objects with a Value equal to Graph.AttributeStats.mode, that is the most frequent Value.


mean

public double mean
Mean or average Sum of all Values divided by the number of observations. It is computed just for numerical attributes.


variance

public double variance
Variance. It is computed just for numerical attributes.


median

public double median
Median Middle value that separates the higher half from the lower. If a < b < c, then the median of the list {a, b, c} is b, and if a < b < c < d, then the median of the list {a, b, c, d} is the mean of b and c, i.e. it is (b + c)/2 It is computed just for numerical attributes.

Constructor Detail

Graph.AttributeStats

public Graph.AttributeStats()
Method Detail

toString

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