net.sf.myra.datamining
Class ProbabilisticSequentialRule
java.lang.Object
net.sf.myra.framework.Trail
net.sf.myra.framework.DefaultTrail
net.sf.myra.datamining.Rule
net.sf.myra.datamining.ProbabilisticRule
net.sf.myra.datamining.ProbabilisticSequentialRule
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class ProbabilisticSequentialRule
- extends ProbabilisticRule
- Version:
- $Revision$ $Date:: $
- Author:
- Fernando Esteban Barril Otero
- See Also:
- Serialized Form
Methods inherited from class net.sf.myra.framework.Trail |
getCost, getIteration, getSize, setCost, setIteration |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ProbabilisticSequentialRule
public ProbabilisticSequentialRule(Metadata metadata)
- Default constructor.
- Parameters:
metadata
-
ProbabilisticSequentialRule
public ProbabilisticSequentialRule(int size,
Label prototype)
- Creates a new
Rule
instance.
- Parameters:
size
- the maximum size of the rule antecedent.prototype
- the label prototype instance.
add
public void add(net.sf.myra.framework.Vertex<?> vertex)
- Overrides:
add
in class Rule
getLast
public net.sf.myra.framework.Vertex<?> getLast()
- Overrides:
getLast
in class net.sf.myra.framework.DefaultTrail
getVertices
public java.util.Collection<net.sf.myra.framework.Vertex<?>> getVertices()
- Overrides:
getVertices
in class net.sf.myra.framework.DefaultTrail
isEmpty
public boolean isEmpty()
- Overrides:
isEmpty
in class net.sf.myra.framework.DefaultTrail
remove
public void remove(net.sf.myra.framework.Vertex<?> vertex)
- Overrides:
remove
in class Rule
clone
public ProbabilisticSequentialRule clone()
- Overrides:
clone
in class ProbabilisticRule
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class ProbabilisticRule
getAntecedent
public Term[] getAntecedent()
- Description copied from class:
Rule
- Returns the rule antecedent.
- Overrides:
getAntecedent
in class Rule
- Returns:
- the rule antecedent.
isCovered
public boolean isCovered(Instance instance)
- Description copied from class:
Rule
- Checks if this rule covers the specified instance.
- Overrides:
isCovered
in class Rule
- Parameters:
instance
- the instance to check.
- Returns:
true
if this rule covers the specified instances;
false
otherwise.
Copyright © 2013. All Rights Reserved.