|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.node.preproc.discretization.caim2.DiscretizationScheme
public class DiscretizationScheme
Represents a discretization scheme. Therefore, an ordered set of boundaries is hold.
| Constructor Summary | |
|---|---|
DiscretizationScheme(Config content)
Creates a DiscretizationScheme from a Config
object. |
|
DiscretizationScheme(DiscretizationScheme dScheme)
Creates a discretization scheme from a given one. |
|
DiscretizationScheme(Interval initialInterval)
Creates a discretization scheme from an initial interval. |
|
| Method Summary | |
|---|---|
double[] |
getBounds()
Returns the bounds of the intervals. |
String |
getDiscreteValue(double value)
Determins the interval of the value and returns a discrete value for that. |
int |
getIntervalIndexOf(double value)
Returns the index of the interval the given value is contained in. |
int |
getNumIntervals()
|
void |
insertBound(double newBound)
Inserts a new bound into an interval. |
void |
saveToModelContent(Config modelContent)
Saves this scheme to a ModelContentWO object. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DiscretizationScheme(Interval initialInterval)
initialInterval - the initial intervalpublic DiscretizationScheme(DiscretizationScheme dScheme)
dScheme - the discretization scheme to copy
public DiscretizationScheme(Config content)
throws InvalidSettingsException
DiscretizationScheme from a Config
object.
content - the content object to restore the model from
InvalidSettingsException - thrown if the settings are invalid| Method Detail |
|---|
public int getIntervalIndexOf(double value)
value - the value to find the interval index for
public String getDiscreteValue(double value)
value - the value to discretize
public void insertBound(double newBound)
newBound - the new bound to insertpublic int getNumIntervals()
public String toString()
toString in class Objectpublic void saveToModelContent(Config modelContent)
ModelContentWO object.
modelContent - the Config object to store the
DiscretizationScheme topublic double[] getBounds()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||