|
Sparksee 6.1.0
|
Attribute statistics class. More...
#include <Sparksee.h>


Instance Methods | |
| (long long) | - getTotal |
| Gets the number of objects with a non-NULL Value (BASIC statistic). | |
| (long long) | - getNull |
| Gets the number of objects NULL a Value (BASIC statistics). | |
| (long long) | - getDistinct |
| Gets the number of distinct values (BASIC statistics). | |
| (STSValue *) | - getMin |
| Gets the minimum existing value (BASIC statistics). | |
| (STSValue *) | - getMax |
| Gets the maximum existing value (BASIC statistics). | |
| (int) | - getMaxLengthString |
| Gets the maximum length. | |
| (int) | - getMinLengthString |
| Gets the minimum length. | |
| (double) | - getAvgLengthString |
| Gets the average length. | |
| (STSValue *) | - getMode |
| Gets the mode. | |
| (long long) | - getModeCount |
| Gets the number of objects with a Value equal to the mode. | |
| (double) | - getMean |
| Gets the mean or average. | |
| (double) | - getVariance |
| Gets the variance. | |
| (double) | - getMedian |
| Gets the median. | |
Attribute statistics class.
It contains statistic data about an attribute.
Some fields are valid just for numerical attributes and others just for string attributes. Also, some statistics are considered BASIC because computing them do not require to traverse all the different values of the attribute. For each getter method the documentation tells if the statistic is BASIC or not. See the Graph class method getAttributeStatistics or check out the SPARKSEE User Manual for more details on this.
| - (double) getAvgLengthString |
Gets the average length.
If the attribute is not an string attribute, it just returns 0.
References getAvgLengthString.
Referenced by getAvgLengthString.
| - (long long) getDistinct |
Gets the number of distinct values (BASIC statistics).
References getDistinct.
Referenced by getDistinct.
| - (STSValue *) getMax |
| - (int) getMaxLengthString |
Gets the maximum length.
If the attribute is not an string attribute, it just returns 0.
References getMaxLengthString.
Referenced by getMaxLengthString.
| - (double) getMean |
| - (double) getMedian |
Gets the 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.
References getMedian.
Referenced by getMedian.
| - (STSValue *) getMin |
| - (int) getMinLengthString |
Gets the minimum length.
If the attribute is not an string attribute, it just returns 0.
References getMinLengthString.
Referenced by getMinLengthString.
| - (STSValue *) getMode |
| - (long long) getModeCount |
Gets the number of objects with a Value equal to the mode.
References getModeCount.
Referenced by getModeCount.
| - (long long) getNull |
| - (long long) getTotal |
| - (double) getVariance |
Gets the variance.
It is computed just for numerical attributes.
References getVariance.
Referenced by getVariance.