チェンジセット 48 : BH13SPARQLBuilder
- 更新日時:
- 2014/02/17 18:49:52 (11 年 前)
- ファイル:
-
- 1 変更
凡例:
- 変更なし
- 追加
- 削除
-
BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/OWLClassGraph.java
r47 r48 47 47 th = 0; 48 48 concut = 2.0; 49 divcut = 2.0;49 divcut = - 2.0; 50 50 } 51 51 … … 158 158 classLinks[j].getNumOfLinkedInstances(), 159 159 classLinks[j].getNumOfLinks()); 160 double divv = getValueForDivergence(classLinks[j].getNumOfOriginInstances(),161 classLinks[j].getNumOfLinkedInstances(),162 classLinks[j].getNumOfLinks());160 //double divv = getValueForDivergence(classLinks[j].getNumOfOriginInstances(), 161 // classLinks[j].getNumOfLinkedInstances(), 162 // classLinks[j].getNumOfLinks()); 163 163 if ( conv > concut ){ // converge 164 164 con = true; 165 165 } 166 if ( divv >divcut ){166 if ( conv < divcut ){ 167 167 div = true; 168 168 } … … 182 182 183 183 private double getValueForConvergence(int numOfOriginInstances, int numOfLinkedInstances, int numOfLinks){ 184 return (double) numOfLinks / (double) numOfLinkedInstances ; 184 //return (double) numOfLinks / (double) numOfLinkedInstances ; 185 return Math.log((double)numOfOriginInstances) - Math.log((double)numOfLinkedInstances); 185 186 } 186 187 188 /* 187 189 private double getValueForDivergence(int numOfOriginInstances, int numOfLinkedInstances, int numOfLinks){ 188 return (double) numOfLinks / (double) numOfOriginInstances ; 189 } 190 return (double) numOfLinks / (double) numOfOriginInstances ; 191 // return ; 192 }*/ 190 193 }