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

B12276-01

oracle.dmt.odm.model
Class NMFFeature

java.lang.Object
  |
  +--oracle.dmt.odm.model.NMFFeature
All Implemented Interfaces:
Feature

public class NMFFeature
extends java.lang.Object
implements Feature

The feature is an entity that consists of multiple attributes. A set of features expresses a data mining object. Each feature has an identifier which is a consecutive numbering scheme starting at number 1 to uniquely identify the resultant features. Each resultant feature is composed of M entries, where M is the number of attributes in the original data set. Each entry consists of three components: attribute ID, value, and coefficient. The resultant features can be viewed as an aggregate of all the original attributes. The difference among the features is the predominance of each of the attributes in the feature that is represented by the coefficient. If an attribute is highly predominant, its coefficient will be high. The coefficients are non-negative. The value differentiates between numeric and categorical data. The value for numeric data is NULL; for categorical data it is the value from the original data set.


Method Summary
 java.lang.Float getCoefficient(int entryId)
          Returns the coefficient of the specified feature entry.
 FeatureEntry[] getFeatureEntries()
          Returns an array of feature entries in the feature.
 FeatureEntry getFeatureEntry(int entryId)
          Returns the value of the specified entry.
 int getFeatureId()
          Returns the feature identifier.
 java.lang.String getValue(int entryId)
          Returns the value of the specified entry.

 

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

 

Method Detail

getFeatureId

public int getFeatureId()
Returns the feature identifier.
Specified by:
getFeatureId in interface Feature
Returns:
The feature identifier

getFeatureEntries

public FeatureEntry[] getFeatureEntries()
Returns an array of feature entries in the feature.
Specified by:
getFeatureEntries in interface Feature
Returns:
An array of feature entries in the feature

getFeatureEntry

public FeatureEntry getFeatureEntry(int entryId)
                                                  throws InvalidArgumentException
Returns the value of the specified entry.
Specified by:
getFeatureEntry in interface Feature
Returns:
The value of the specified entry
InvalidArgumentException

getValue

public java.lang.String getValue(int entryId)
                          throws InvalidArgumentException
Returns the value of the specified entry.
Returns:
The value of the specified entry
InvalidArgumentException

getCoefficient

public java.lang.Float getCoefficient(int entryId)
                               throws InvalidArgumentException
Returns the coefficient of the specified feature entry.
Returns:
The coefficient of the specified feature entry
InvalidArgumentException

Copyright © 2003 Oracle Corporation. All Rights Reserved.