ca.pfv.spmf.algorithms.sequentialpatterns.fournier2008_seqdim
Class ItemValued
- java.lang.Object
-
- ca.pfv.spmf.algorithms.sequentialpatterns.fournier2008_seqdim.ItemSimple
-
- ca.pfv.spmf.algorithms.sequentialpatterns.fournier2008_seqdim.ItemValued
-
public class ItemValued extends ItemSimple
This class represents a valued item (an item with a double value) as used by the Fournier-Viger et al. (2008) algorithm. This class extend the Item class in the same package.- See Also:
ItemSimple,ItemValued,AlgoFournierViger08
-
-
Constructor Summary
Constructors Constructor and Description ItemValued(int id)ConstructorItemValued(int id, double value)ConstructorItemValued(int id, double value, double min, double max)ConstructorItemValued(int id, double value, int sequenceID)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ClustergetCluster()Get the cluster associated to this item.doublegetMax()Get the maximum value associated to this item.doublegetMin()Get the minimum value associated to this item.intgetSequenceID()Get the sequence ID associated to this item.doublegetValue()Get the value associated with this itemvoidsetCluster(Cluster cluster)Set the cluster associated to this item.voidsetMax(double max)Set the maximum value associated to this item.voidsetMin(double min)Set the minimum value associated to this item.voidsetSequenceID(int sequenceID)Set the sequence ID associated to this item.voidsetValue(double value)Set the value for this itemjava.lang.StringtoString()Get a String representation of this item-
Methods inherited from class ca.pfv.spmf.algorithms.sequentialpatterns.fournier2008_seqdim.ItemSimple
equals, getId, hashCode
-
-
-
-
Constructor Detail
-
ItemValued
public ItemValued(int id)
Constructor- Parameters:
id- an item ID.
-
ItemValued
public ItemValued(int id, double value)Constructor- Parameters:
id- an item ID.value- a value to be associated with this item
-
ItemValued
public ItemValued(int id, double value, double min, double max)Constructor- Parameters:
id- an item ID.value- a value to be associated with this itemmin- a minimum value for this item.max- a maximum value for this item.
-
ItemValued
public ItemValued(int id, double value, int sequenceID)Constructor- Parameters:
id- an item ID.value- a value to be associated with this itemsequenceID- an ID of a sequence containing this item
-
-
Method Detail
-
getValue
public double getValue()
Get the value associated with this item- Returns:
- a double value
-
toString
public java.lang.String toString()
Get a String representation of this item- Overrides:
toStringin classItemSimple- Returns:
- a String
-
getSequenceID
public int getSequenceID()
Get the sequence ID associated to this item.- Returns:
- an interger value.
-
setSequenceID
public void setSequenceID(int sequenceID)
Set the sequence ID associated to this item. param sequenceID an interger value.
-
setValue
public void setValue(double value)
Set the value for this item- Parameters:
value- a double value
-
getCluster
public Cluster getCluster()
Get the cluster associated to this item.- Returns:
- a Cluster
-
setCluster
public void setCluster(Cluster cluster)
Set the cluster associated to this item. param cluster a Cluster
-
getMin
public double getMin()
Get the minimum value associated to this item.- Returns:
- a double value
-
getMax
public double getMax()
Get the maximum value associated to this item.- Returns:
- a double value
-
setMin
public void setMin(double min)
Set the minimum value associated to this item.- Parameters:
min- a double value
-
setMax
public void setMax(double max)
Set the maximum value associated to this item.- Parameters:
max- a double value
-
-
DMelt 3.0 © DataMelt by jWork.ORG