public class Rule2ApproximatedEntity
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static java.util.HashSet<java.lang.Integer> |
getApproximatedEntityExamples(Rule rule) |
Gets hash set with numbers of all examples belonging to the approximated entity (union or decision class)
for which given decision rule has been created.
|
static int |
getApproximatedEntitySize(Rule rule) |
Gets quantity of examples belonging to the approximated entity (union or decision class)
for which given decision rule has been created.
|
public static int getApproximatedEntitySize(Rule rule)
Rule.EQUAL
, then object of type StandardDecisionClass
is created.
If characteristic decision class of given rule is equal to Rule.AT_LEAST
or Rule.AT_MOST
,
then object of type StandardUnion
or PairDecisionMonotonicUnion
is created.
In all cases, size of given approximated entity is returned.rule
- decision rulejava.lang.NullPointerException
- when rule's learning memory container is null
InvalidValueException
- when rule's learning memory container does not contain exactly one active decision attributepublic static java.util.HashSet<java.lang.Integer> getApproximatedEntityExamples(Rule rule)
Rule.EQUAL
, then object of type StandardDecisionClass
is created.
If characteristic decision class of given rule is equal to Rule.AT_LEAST
or Rule.AT_MOST
,
then object of type StandardUnion
or PairDecisionMonotonicUnion
is created.rule
- decision rulejava.lang.NullPointerException
- when rule's learning memory container is null
InvalidValueException
- when rule's learning memory container does not contain exactly one active decision attribute