javax.datamining.statistics
Interface AttributeStatisticsSet


public interface AttributeStatisticsSet

The interface AttributeStatisticsSet is a container for statistics on a related set of attributes and/or cases. It results from computing statistics on a physical data set object directly, as a characterization of the data used to build a model, or information on a particular model element, e.g., a cluster in a clustering model.

Author:
JSR-73 Java Data Mining Expert Group

Method Summary
 long getNumberOfCases()
          Returns the number of cases for which statistics were computed.
 java.util.Collection getStatistics()
          Returns a collection of all attributes that allows sequential inspection of the returned statistics.
 UnivariateStatistics getStatistics(java.lang.String attributeName)
          Returns the statistics for the given attribute.
 java.util.Date getStatisticsTimestamp()
          Returns the timestamp when statistics were computed.
 boolean supportsCapabiltiy(AttributeStatisticsSetCapability capability)
          Returns true if the specified capability is supported in the implementation of the AttributeStatisticsSet being used.
 

Method Detail

getNumberOfCases

public long getNumberOfCases()
Returns the number of cases for which statistics were computed.

Returns:
long

getStatistics

public java.util.Collection getStatistics()
                                   throws JDMException
Returns a collection of all attributes that allows sequential inspection of the returned statistics.

Returns:
Collection
Throws:
JDMException

getStatistics

public UnivariateStatistics getStatistics(java.lang.String attributeName)
                                   throws JDMException
Returns the statistics for the given attribute.

Parameters:
attributeName - The name of the attribute whose statistics is to be returned.
Returns:
UnivariateStatistics
Throws:
JDMException

getStatisticsTimestamp

public java.util.Date getStatisticsTimestamp()
Returns the timestamp when statistics were computed.

Returns:
Date

supportsCapabiltiy

public boolean supportsCapabiltiy(AttributeStatisticsSetCapability capability)
                           throws JDMException
Returns true if the specified capability is supported in the implementation of the AttributeStatisticsSet being used. Returns false otherwise.

Parameters:
capability -
Returns:
boolean
Throws:
JDMException