Sparksee 6.1.0
STSAttributeStatistics Class Reference

Attribute statistics class. More...

#include <Sparksee.h>

Inheritance diagram for STSAttributeStatistics:
Inheritance graph
Collaboration diagram for STSAttributeStatistics:
Collaboration graph

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.

Detailed Description

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.

Author
Sparsity Technologies http://www.sparsity-technologies.com

Method Documentation

◆ getAvgLengthString

- (double) getAvgLengthString

Gets the average length.

If the attribute is not an string attribute, it just returns 0.

Returns
The average length.

References getAvgLengthString.

Referenced by getAvgLengthString.

◆ getDistinct

- (long long) getDistinct

Gets the number of distinct values (BASIC statistics).

Returns
The number of distinct values.

References getDistinct.

Referenced by getDistinct.

◆ getMax

- (STSValue *) getMax

Gets the maximum existing value (BASIC statistics).

Returns
The maximum existing value.

References getMax.

Referenced by getMax.

◆ getMaxLengthString

- (int) getMaxLengthString

Gets the maximum length.

If the attribute is not an string attribute, it just returns 0.

Returns
The maximum length.

References getMaxLengthString.

Referenced by getMaxLengthString.

◆ getMean

- (double) getMean

Gets the mean or average.

Mean or average: Sum of all Values divided by the number of observations.

It is computed just for numerical attributes.

Returns
The mean.

References getMean.

Referenced by getMean.

◆ getMedian

- (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.

Returns
The median.

References getMedian.

Referenced by getMedian.

◆ getMin

- (STSValue *) getMin

Gets the minimum existing value (BASIC statistics).

Returns
The minimum existing value.

References getMin.

Referenced by getMin.

◆ getMinLengthString

- (int) getMinLengthString

Gets the minimum length.

If the attribute is not an string attribute, it just returns 0.

Returns
The minimum length.

References getMinLengthString.

Referenced by getMinLengthString.

◆ getMode

- (STSValue *) getMode

Gets the mode.

Mode: Most frequent Value.

Returns
The mode.

References getMode.

Referenced by getMode.

◆ getModeCount

- (long long) getModeCount

Gets the number of objects with a Value equal to the mode.

Returns
The number of objects with a Value equal to the mode.

References getModeCount.

Referenced by getModeCount.

◆ getNull

- (long long) getNull

Gets the number of objects NULL a Value (BASIC statistics).

Returns
The number of objects NULL a Value.

References getNull.

Referenced by getNull.

◆ getTotal

- (long long) getTotal

Gets the number of objects with a non-NULL Value (BASIC statistic).

Returns
The number of objects with a non-NULL Value.

References getTotal.

Referenced by getTotal.

◆ getVariance

- (double) getVariance

Gets the variance.

It is computed just for numerical attributes.

Returns
The variance.

References getVariance.

Referenced by getVariance.


The documentation for this class was generated from the following file:
  • Sparksee.h