|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nz.ac.waikato.mcennis.rat.graph.algorithm.collaborativefiltering.AssociativeMiningItems
public class AssociativeMiningItems
TODO: update XML import and export Represents a single association between a set of actors and a destiation actor This association has a significance level and may be positive or negative.
Constructor Summary | |
---|---|
AssociativeMiningItems(java.util.Collection<Actor> col,
LinkQuery relation,
LinkQuery.LinkEnd direction,
double significance)
Create a new association containing all actors in the collection over the given relation declaring its significance level. |
|
AssociativeMiningItems(Graph g,
LinkQuery relation,
LinkQuery.LinkEnd direction,
Actor value)
Create a new association on this graph, with this relation, using this actor. |
Method Summary | |
---|---|
boolean |
applies(java.util.HashSet<Actor> data)
Are all the given actors present in this association? |
void |
clearTransients()
Eliiminates all transient objects. |
int |
compareTo(java.lang.Object o)
|
AssociativeMiningItems |
expand(Actor newActor)
Create a new association that also includes the given new actor. |
Actor[] |
getActors()
Get the actors in this association backed by this array. |
double |
getNegativeSignificance()
Return the threshold that determines whether or not a candidate association has a negative correlation with the destination. |
double |
getPositiveSignificance()
Return the threshold that determines whether or not a candidate association has a positive correlation with the destination. |
double |
getSignificance()
Get the statistical significance of the association |
boolean |
isGreater(Actor a)
Is this actor greater than all actors in this association |
boolean |
isPositive()
Is this association positively or negatively correlated with the destination actor |
void |
setNegativeSignificance(double negativeSignificance)
Set the threshold that determines whether or not a candidate association has a negative correlation with the destination. |
void |
setPositive(boolean isPositive)
Set whether this association positively or negatively correlated with the destination actor |
void |
setPositiveSignificance(double positiveSignificance)
Set the threshold that determines whether or not a candidate association has a positive correlation with the destination. |
void |
setSignificance(double significance)
Set the statistical significance of the association |
int |
significanceTest(Actor target)
Given the set of all actors in this association and the target, is their a significant difference between the population of the destination actor in the set of all references over the relation in the candidate association compared to over the entire relation. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AssociativeMiningItems(Graph g, LinkQuery relation, LinkQuery.LinkEnd direction, Actor value)
g
- graph for datarelation
- type of link to get assocaitions fromvalue
- seed actor for this associationpublic AssociativeMiningItems(java.util.Collection<Actor> col, LinkQuery relation, LinkQuery.LinkEnd direction, double significance)
col
- collections of actors in this associationrelation
- link relation from which this association is derivedsignificance
- level of significance of this associationMethod Detail |
---|
public double getSignificance()
public void setSignificance(double significance)
significance
- statistical significance of the associationpublic boolean isPositive()
public void setPositive(boolean isPositive)
isPositive
- is the correlation positivepublic AssociativeMiningItems expand(Actor newActor)
newActor
- actor that is to added to the new association
public Actor[] getActors()
public boolean isGreater(Actor a)
a
- actor to be compared
public int significanceTest(Actor target)
target
- actor to be tentatively added to the association
public double getNegativeSignificance()
public void setNegativeSignificance(double negativeSignificance)
negativeSignificance
- threshold for declaring a significant negative correlationpublic double getPositiveSignificance()
public void setPositiveSignificance(double positiveSignificance)
positiveSignificance
- threshold for declaring a significant positive correlationpublic void clearTransients()
public boolean applies(java.util.HashSet<Actor> data)
data
- set of actors to check
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |