<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">

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

B12276-01

oracle.dmt.odm.transformation
Class NumericalBin

java.lang.Object
  |
  +--oracle.dmt.odm.transformation.NumericalBin

public class NumericalBin
extends java.lang.Object

An entry of class NumericalBin specifies explicit bin boundaries for a numerical mining attribute. A bin identifier must be specified and boundaries must be specified for each bin. A bin boundary has a start and end; the end value must be greater than or equal to the start value. The low value is included in the bin, and the high value is excluded, except for the bin with the largest high value. A display name can also be specified for each bin. If no name is specified, the default name "<lower_boundary>-<upper_boundary>" will be assigned to the bin.

Outliers will not assigned bin. Outliers values that are less then smallest low value or lager then biggest high value.


Constructor Summary
NumericalBin(int binId, float start, float end)
          Creates NumericalBin instance that specifies the bin boudaries for a mining attribute.
NumericalBin(int binId, float start, float end, java.lang.String displayName)
          Creates NumericalBin instance that specifies the bin boudaries for a mining attribute.

 

Method Summary
 int getBinId()
          Returns the bin identifier.
 java.lang.String getDisplayName()
          Returns the display name.
 float getEnd()
          Returns end value (high value) of the bin.
 float getStart()
          Returns the start value (low value) of the bin.

 

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

 

Constructor Detail

NumericalBin

public NumericalBin(int binId,
                    float start,
                    float end)
             throws InvalidArgumentException
Creates NumericalBin instance that specifies the bin boudaries for a mining attribute. The display name="start-end" will be assigned to the object constructed.
Parameters:
binId - Bin id
start - Start value (low value) of the bin
end - End value (high value) of the bin
Throws:
InvalidArgumentException - when one of the arguments is invalid

NumericalBin

public NumericalBin(int binId,
                    float start,
                    float end,
                    java.lang.String displayName)
             throws InvalidArgumentException
Creates NumericalBin instance that specifies the bin boudaries for a mining attribute.
Parameters:
binId - Bin id
start - Start value (low value) of the bin
end - End value (high value) of the bin
displayName - Display name associated with the bin.
Throws:
InvalidArgumentException - when one of the arguments is invalid
Method Detail

getStart

public float getStart()
Returns the start value (low value) of the bin.
Returns:
Start value

getEnd

public float getEnd()
Returns end value (high value) of the bin.
Returns:
End value

getBinId

public int getBinId()
Returns the bin identifier.
Returns:
bin ID.

getDisplayName

public java.lang.String getDisplayName()
Returns the display name.
Returns:
display name.

Copyright © 2003 Oracle Corporation. All Rights Reserved.