We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a489901 commit 7443954Copy full SHA for 7443954
Others/DataMining_TAN/AttrMutualInfo.java
@@ -0,0 +1,28 @@
1
+package DataMining_TAN;
2
+
3
+/**
4
+ * 属性之间的互信息值,表示属性之间的关联性大小
5
+ * @author lyq
6
+ *
7
+ */
8
+public class AttrMutualInfo implements Comparable<AttrMutualInfo>{
9
+ //互信息值
10
+ Double value;
11
+ //关联属性值对
12
+ Node[] nodeArray;
13
14
+ public AttrMutualInfo(double value, Node node1, Node node2){
15
+ this.value = value;
16
17
+ this.nodeArray = new Node[2];
18
+ this.nodeArray[0] = node1;
19
+ this.nodeArray[1] = node2;
20
+ }
21
22
+ @Override
23
+ public int compareTo(AttrMutualInfo o) {
24
+ // TODO Auto-generated method stub
25
+ return o.value.compareTo(this.value);
26
27
28
+}
0 commit comments