javax.datamining.statistics
Interface DiscreteStatistics


public interface DiscreteStatistics

A DiscreteStatistics captures discrete statistical properties of an attribute.

Author:
JSR-73 Java Data Mining Expert Group

Method Summary
 java.lang.Object[] getDiscreteValues()
          Returns a list of discrete values for which frequencies are available.
 long[] getFrequencies()
          Returns the frequencies of the values in the attributes.
 long getFrequency(java.lang.Object discreteValue)
          Returns the frequency of the given category.
 java.lang.Object getModalValue()
          Returns the modal value in the attribute.
 

Method Detail

getDiscreteValues

public java.lang.Object[] getDiscreteValues()
Returns a list of discrete values for which frequencies are available.

Returns:
Object[]

getFrequencies

public long[] getFrequencies()
Returns the frequencies of the values in the attributes. Frequencies are provided in the same order as getDescreteValues.

Returns:
long[]

getFrequency

public long getFrequency(java.lang.Object discreteValue)
                  throws JDMException
Returns the frequency of the given category.

Parameters:
discreteValue -
Returns:
long
Throws:
JDMException

getModalValue

public java.lang.Object getModalValue()
Returns the modal value in the attribute. The modal value is the most frequent value.

Returns:
Object