DexNet 4.7.0
Public Member Functions
com::sparsity::dex::gdb::AttributeStatistics Class Reference

Attribute statistics class. More...

List of all members.

Public Member Functions

com.sparsity.dex.gdb.Value GetMin ()
 Gets the minimum existing value (BASIC statistics).
int GetMinLengthString ()
 Gets the minimum length.
double GetVariance ()
 Gets the variance.
com.sparsity.dex.gdb.Value GetMode ()
 Gets the mode.
long GetNull ()
 Gets the number of objects NULL a Value (BASIC statistics).
long GetDistinct ()
 Gets the number of distinct values (BASIC statistics).
double GetMean ()
 Gets the mean or average.
com.sparsity.dex.gdb.Value GetMax ()
 Gets the maximum existing value (BASIC statistics).
double GetMedian ()
 Gets the median.
long GetTotal ()
 Gets the number of objects with a non-NULL Value (BASIC statistic).
int GetMaxLengthString ()
 Gets the maximum length.
double GetAvgLengthString ()
 Gets the average length.
long GetModeCount ()
 Gets the number of objects with a Value equal to the mode.

Detailed Description

Attribute statistics class.

It contains statistic data about an attribute.

Some fields are valid just for numerical attributes.

Some statistics are considered BASIC because computing them do not require to traverse all the different values of the attribute. The getter for each statistic will tell you if the statistic is BASIC or not.

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

Member Function Documentation

double com::sparsity::dex::gdb::AttributeStatistics::GetAvgLengthString ( )

Gets the average length.

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

Returns:
The average length.
long com::sparsity::dex::gdb::AttributeStatistics::GetDistinct ( )

Gets the number of distinct values (BASIC statistics).

Returns:
The number of distinct values.
com.sparsity.dex.gdb.Value com::sparsity::dex::gdb::AttributeStatistics::GetMax ( )

Gets the maximum existing value (BASIC statistics).

Returns:
The maximum existing value.
int com::sparsity::dex::gdb::AttributeStatistics::GetMaxLengthString ( )

Gets the maximum length.

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

Returns:
The maximum length.
double com::sparsity::dex::gdb::AttributeStatistics::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.
double com::sparsity::dex::gdb::AttributeStatistics::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.
com.sparsity.dex.gdb.Value com::sparsity::dex::gdb::AttributeStatistics::GetMin ( )

Gets the minimum existing value (BASIC statistics).

Returns:
The minimum existing value.
int com::sparsity::dex::gdb::AttributeStatistics::GetMinLengthString ( )

Gets the minimum length.

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

Returns:
The minimum length.
com.sparsity.dex.gdb.Value com::sparsity::dex::gdb::AttributeStatistics::GetMode ( )

Gets the mode.

Mode: Most frequent Value.

Returns:
The mode.
long com::sparsity::dex::gdb::AttributeStatistics::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.
long com::sparsity::dex::gdb::AttributeStatistics::GetNull ( )

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

Returns:
The number of objects NULL a Value.
long com::sparsity::dex::gdb::AttributeStatistics::GetTotal ( )

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

Returns:
The number of objects with a non-NULL Value.
double com::sparsity::dex::gdb::AttributeStatistics::GetVariance ( )

Gets the variance.

It is computed just for numerical attributes.

Returns:
The variance.