net.sf.myra.datamining
Class ProbabilisticSequentialRule

java.lang.Object
  extended by net.sf.myra.framework.Trail
      extended by net.sf.myra.framework.DefaultTrail
          extended by net.sf.myra.datamining.Rule
              extended by net.sf.myra.datamining.ProbabilisticRule
                  extended by 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

Constructor Summary
ProbabilisticSequentialRule(int size, Label prototype)
          Creates a new Rule instance.
ProbabilisticSequentialRule(Metadata metadata)
          Default constructor.
 
Method Summary
 void add(net.sf.myra.framework.Vertex<?> vertex)
           
 ProbabilisticSequentialRule clone()
           
 boolean equals(java.lang.Object o)
           
 Term[] getAntecedent()
          Returns the rule antecedent.
 net.sf.myra.framework.Vertex<?> getLast()
           
 java.util.Collection<net.sf.myra.framework.Vertex<?>> getVertices()
           
 boolean isCovered(Instance instance)
          Checks if this rule covers the specified instance.
 boolean isEmpty()
           
 void remove(net.sf.myra.framework.Vertex<?> vertex)
           
 
Methods inherited from class net.sf.myra.datamining.ProbabilisticRule
getConsequent, getProbabiblities, setConsequent, setProbabiblities, toString
 
Methods inherited from class net.sf.myra.datamining.Rule
getConfidence, setConfidence
 
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
 

Constructor Detail

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.
Method Detail

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.