|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.mine.bfn.fuzzy.membership.MembershipFunction
public class MembershipFunction
Trapezoid membership function with four values for support and core left and right values whereby the support region can be defined infinity. The anchor need to be a value within the core-region. If the anchor's value is changed, the core- and support-region is adjusted if necessary. If the core-region changes, the support-region is - if necessary - adjusted. But not the other way around in both cases.
Field Summary | |
---|---|
(package private) static String |
MAX_FLAG
Maximum flag max. |
(package private) static String |
MIN_FLAG
Minimum flag min. |
Constructor Summary | |
---|---|
MembershipFunction(DoubleValue anchor,
MutableDouble min,
MutableDouble max)
Creates a new trapezoid membership function with its given anchor and two values used to assign the min and max border. |
|
MembershipFunction(ModelContentRO pp)
Creates a new membership function based on the given model content. |
Method Summary | |
---|---|
DataCell |
createFuzzyIntervalCell()
Returns a DataCell , either missing if undefined, or a
FuzzyIntervalCell using the membership function properties. |
double |
getActivation(double value)
getActivation(.). |
double |
getAnchor()
|
double |
getCenterOfGravity()
|
double |
getCore()
|
MutableDouble |
getMax()
|
double |
getMaxCore()
|
double |
getMaxSupport()
|
MutableDouble |
getMin()
|
double |
getMinCore()
|
double |
getMinSupport()
|
double |
getSupport()
|
boolean |
isMissingIntern()
|
boolean |
isSuppLeftMax()
|
boolean |
isSuppRightMax()
|
protected void |
repairMinMax(double value)
Minimum and maximum are adapted to the (new) value. |
void |
resetCore()
Resets the core to the current anchor. |
void |
save(ModelContentWO pp)
Saves this membership function the given model content. |
void |
setAnchor(double anchor)
Resets the core and anchor to the given value. |
void |
setCoreLeft(double value)
Sets the left core border. |
void |
setCoreRight(double value)
Sets the right core border. |
void |
setSuppLeft(double value)
Sets the left support border. |
void |
setSuppRight(double value)
Sets the right support border. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static final String MIN_FLAG
static final String MAX_FLAG
Constructor Detail |
---|
public MembershipFunction(ModelContentRO pp) throws InvalidSettingsException
pp
- Reads this membership function's properties from.
InvalidSettingsException
- If the properties can't be read.public MembershipFunction(DoubleValue anchor, MutableDouble min, MutableDouble max)
anchor
- the initial center point of this fuzzy functionmin
- the minimum left bordermax
- the maximum right borderMethod Detail |
---|
protected final void repairMinMax(double value)
value
- The new value for min and max.public void setSuppLeft(double value)
value
- the value to setpublic void resetCore()
public void setAnchor(double anchor)
anchor
- the new value for the core borders and anchorpublic void setCoreLeft(double value)
value
- to setpublic void setCoreRight(double value)
value
- to setpublic void setSuppRight(double value)
value
- to setpublic String toString()
toString
in class Object
public boolean isSuppLeftMax()
true
if left support border is unconstrained
otherwise false
public double getMinSupport()
public double getMinCore()
public double getAnchor()
public double getMaxCore()
public double getMaxSupport()
public boolean isSuppRightMax()
public double getSupport()
public double getCore()
public final MutableDouble getMin()
public final MutableDouble getMax()
public final double getActivation(double value)
value
- x to apply
public double getCenterOfGravity()
public final boolean isMissingIntern()
true
if this membership function is undefined.public final DataCell createFuzzyIntervalCell()
DataCell
, either missing if undefined, or a
FuzzyIntervalCell
using the membership function properties.
Internally used to convert this membership function a final
DataCell
.
public final void save(ModelContentWO pp)
pp
- Model content to save properties to.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |