Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## edu.udo.cs.miningmart.m4
Interface EstimatedStatistics

All Known Implementing Classes:
  EstimatedStatistics

public interface EstimatedStatistics

Author:
  Timm Euler Interface to a class whose objects represent estimated values of data characteristics (statistics) for M4 concepts that do not (yet) have a columnset. In the current version no information about the validity of the information or the quality of the estimation is given. Some of the information that objects of this class hold will be known and true while other information will be guessed. A future enhancement could be to qualify each item of information in this sense. Returned estimates should be compared with the public constants defined in this interface to see if they are unknown.

Field Summary
`static java.lang.String` | `VALUE_DISCRETE_UNKNOWN`
`static double` | `VALUE_DOUBLE_UNKNOWN`
`static int` | `VALUE_INT_UNKNOWN`

Method Summary
`void` | `addAttribute(java.lang.String nameOfAttribute)`
`void` | `addValueInformation(java.lang.String nameOfAttribute, java.lang.String value, int noOfOccurrences)`
`EstimatedStatistics` | `copy()`
`void` | `copyValueList(java.lang.String nameOfDestinationAttribute, EstimatedStatistics from, java.lang.String nameOfSourceAttribute)` Copy the list of values (with their number of occurrences) of the attribute with name `nameOfSourceAttribute`from the given EstimatedStatistics object to this object, to the attribute with name `nameOfDestinationAttribute`.
`double` | `getBiggestValue(java.lang.String nameOfAttribute)`
`double` | `getLowestValue(java.lang.String nameOfAttribute)`
`int` | `getNumberOfMissingValues(java.lang.String nameOfAttribute)`
`int` | `getNumberOfOccurrences(java.lang.String nameOfAttribute, java.lang.String value)`
`int` | `getNumberOfRows()`
`java.util.Vector` | `getValueList(java.lang.String nameOfAttribute)` Returns a Vector with the values this attribute takes.
`void` | `removeValue(java.lang.String value, java.lang.String nameOfAttribute)` Removes the given value from the list of values of the given attribute.
`void` | `setBiggestValue(java.lang.String nameOfAttribute, double value)`
`void` | `setLowestValue(java.lang.String nameOfAttribute, double value)`
`void` | `setNumberOfMissingValues(java.lang.String nameOfAttribute, int number)`
`void` | `setNumberOfOccurrences(java.lang.String nameOfAttribute, java.lang.String value, int number)`
`void` | `setNumberOfRows(int numberOfRows)`
`void` | `setValueList(java.lang.String nameOfAttribute, java.util.Vector theValues)` Sets the list of occurring values of the given attribute.

Field Detail

### VALUE_DISCRETE_UNKNOWN

    public static final java.lang.String VALUE_DISCRETE_UNKNOWN

See Also:
  Constant Field Values

### VALUE_DOUBLE_UNKNOWN

    public static final double VALUE_DOUBLE_UNKNOWN

See Also:
  Constant Field Values

### VALUE_INT_UNKNOWN

    public static final int VALUE_INT_UNKNOWN

See Also:
  Constant Field Values

Method Detail

### getValueList

    public java.util.Vector getValueList(java.lang.String nameOfAttribute)

  Returns a Vector with the values this attribute takes.

  Parameters:
    `nameOfAttribute` -
  Returns:

### removeValue

    public void removeValue(java.lang.String value,
                            java.lang.String nameOfAttribute)

  Removes the given value from the list of values of the given attribute.

  Parameters:
    `value` -
    `nameOfAttribute` -

### getNumberOfMissingValues

    public int getNumberOfMissingValues(java.lang.String nameOfAttribute)

### setNumberOfMissingValues

    public void setNumberOfMissingValues(java.lang.String nameOfAttribute,
                                         int number)

### getBiggestValue

    public double getBiggestValue(java.lang.String nameOfAttribute)

### setBiggestValue

    public void setBiggestValue(java.lang.String nameOfAttribute,
                                double value)

### getLowestValue

    public double getLowestValue(java.lang.String nameOfAttribute)

### setLowestValue

    public void setLowestValue(java.lang.String nameOfAttribute,
                               double value)

### getNumberOfRows

    public int getNumberOfRows()

### setNumberOfRows

    public void setNumberOfRows(int numberOfRows)

### getNumberOfOccurrences

    public int getNumberOfOccurrences(java.lang.String nameOfAttribute,
                                      java.lang.String value)

### setNumberOfOccurrences

    public void setNumberOfOccurrences(java.lang.String nameOfAttribute,
                                       java.lang.String value,
                                       int number)

### setValueList

    public void setValueList(java.lang.String nameOfAttribute,
                             java.util.Vector theValues)

  Sets the list of occurring values of the given attribute. The given vector must contain Strings with the values.

  Parameters:
    `nameOfAttribute` -
    `theValues` - a Vector with Strings

### copyValueList

    public void copyValueList(java.lang.String nameOfDestinationAttribute,
                              EstimatedStatistics from,
                              java.lang.String nameOfSourceAttribute)

  Copy the list of values (with their number of occurrences) of the attribute with name `nameOfSourceAttribute`from the given EstimatedStatistics object to this object, to the attribute with name `nameOfDestinationAttribute`.

  Parameters:
    `nameOfDestinationAttribute` - name of attribute to which to set the copied list
    `from` - the given EstimatedStatistics object
    `nameOfSourceAttribute` - name of attribute from which to copy

### copy

    public EstimatedStatistics copy()

### addAttribute

    public void addAttribute(java.lang.String nameOfAttribute)

### addValueInformation

    public void addValueInformation(java.lang.String nameOfAttribute,
                                    java.lang.String value,
                                    int noOfOccurrences)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005