Class Cosine
- java.lang.Object
-
- elki.itemsetmining.associationrules.interest.Cosine
-
- All Implemented Interfaces:
InterestingnessMeasure
@Reference(authors="P. Tan, V. Kumar", title="Interestingness measures for association patterns: A perspective", booktitle="Proc. Workshop on Postprocessing in Machine Learning and Data Mining", url="https://www.cs.umn.edu/sites/cs.umn.edu/files/tech_reports/00-036.pdf", bibkey="tr/umn/TanK00") public class Cosine extends java.lang.Object implements InterestingnessMeasure
Cosine interestingness measure, \(\tfrac{\text{support}(A\cup B)}{\sqrt{\text{support}(A)\text{support}(B)}} =\tfrac{P(A\cap B)}{\sqrt{P(A)P(B)}}\).The interestingness measure called IS by Tan and Kumar.
Reference:
P. Tan, V. Kumar
Interestingness measures for association patterns: A perspective
In Proc. Workshop on Postprocessing in Machine Learning and Data Mining- Since:
- 0.7.5
- Author:
- Frederic Sautter
-
-
Constructor Summary
Constructors Constructor Description Cosine()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
measure(int t, int sX, int sY, int sXY)
Computes the value of the measure for a given support values
-
-
-
Method Detail
-
measure
public double measure(int t, int sX, int sY, int sXY)
Description copied from interface:InterestingnessMeasure
Computes the value of the measure for a given support values- Specified by:
measure
in interfaceInterestingnessMeasure
- Parameters:
t
- Total number of transactionsX
- Support of the antecedentsY
- Support of the consequentsXY
- Support of the union of antecedent and consequent- Returns:
- value of the measure
-
-