Oracle Data Mining Java API Reference
10g Release 1 (10.1)

B12276-01

oracle.dmt.odm
Class SparsitySpecification

java.lang.Object
  |
  +--oracle.dmt.odm.Enum
        |
        +--oracle.dmt.odm.SparsitySpecification
All Implemented Interfaces:
java.io.Serializable

public class SparsitySpecification
extends Enum

The enumeration class SparsitySpecification indicates whether the attribute representation is dense or sparse. By default, all the attributes are dense. I.e. all the attribute values are repeated as many times as they are present. In sparse representation, the most common value for an attribute is eliminated ( not represented), only the exception values are present. When an attribute is defined to be sparse, its most common value is missing from the dataset. The semantics of the value are as follows:

Since:
10.1.0
See Also:
Serialized Form

Field Summary
static SparsitySpecification dense
           
static SparsitySpecification sparse
           

 

Method Summary
static SparsitySpecification getInstance(int id)
          Returns SparsitySpecification enumeration object corresponding to the specified ID.
static SparsitySpecification getInstance(java.lang.String name)
          Returns SparsitySpecification enumeration object corresponding to the specified name.
static SparsitySpecification[] list()
          Returns the list of all SparsitySpecification enumerations defined.
static java.lang.String[] listNames()
          Returns the list of names of all SparsitySpecification enumerations defined.

 

Methods inherited from class oracle.dmt.odm.Enum
getEnum, getID, isEqual

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

dense

public static final SparsitySpecification dense

sparse

public static final SparsitySpecification sparse
Method Detail

listNames

public static java.lang.String[] listNames()
Returns the list of names of all SparsitySpecification enumerations defined.
Returns:
array of names for the SparsitySpecification enumeration

list

public static SparsitySpecification[] list()
Returns the list of all SparsitySpecification enumerations defined.
Returns:
array of enumeration values for the SparsitySpecification enumeration

getInstance

public static SparsitySpecification getInstance(java.lang.String name)
Returns SparsitySpecification enumeration object corresponding to the specified name.
Parameters:
name - of the sparsity specification
Returns:
instance of the SparsitySpecification enumeration object corresponding to the given name, null if there is no enumeration for this name.

getInstance

public static SparsitySpecification getInstance(int id)
Returns SparsitySpecification enumeration object corresponding to the specified ID.
Parameters:
id - (0, 1)
Returns:
instance of the SparsitySpecification enumeration object corresponding to the given id, null if there is no enumeration for id.

Copyright © 2003 Oracle Corporation. All Rights Reserved.