NIHVIVO-2833 normalization factor will not be used.

This commit is contained in:
anupsawant 2011-07-13 16:02:11 +00:00
parent e94f366b40
commit c085bc57c0

View file

@ -38,7 +38,7 @@ public class CalculateParameters implements DocumentModifier {
private boolean shutdown = false; private boolean shutdown = false;
private Dataset dataset; private Dataset dataset;
public static int totalInd=1; // public static int totalInd=1;
private static final String prefix = "prefix owl: <http://www.w3.org/2002/07/owl#> " private static final String prefix = "prefix owl: <http://www.w3.org/2002/07/owl#> "
+ " prefix vitroDisplay: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#> " + " prefix vitroDisplay: <http://vitro.mannlib.cornell.edu/ontologies/display/1.1#> "
@ -64,7 +64,7 @@ public class CalculateParameters implements DocumentModifier {
public CalculateParameters(Dataset dataset){ public CalculateParameters(Dataset dataset){
this.dataset =dataset; this.dataset =dataset;
new Thread(new TotalInd(this.dataset,totalCountQuery)).start(); // new Thread(new TotalInd(this.dataset,totalCountQuery)).start();
} }
public CalculateParameters(){ public CalculateParameters(){
@ -99,8 +99,8 @@ public class CalculateParameters implements DocumentModifier {
dataset.getLock().leaveCriticalSection(); dataset.getLock().leaveCriticalSection();
} }
beta = (float)Conn/totalInd; beta = (float)Conn;
beta *= 100; //beta *= 100;
beta += 1; beta += 1;
// sigmoid function to keep beta between 0 to 1; // sigmoid function to keep beta between 0 to 1;
@ -286,8 +286,8 @@ class TotalInd implements Runnable{
soln = results.next(); soln = results.next();
totalInd = Integer.parseInt(soln.getLiteral(resultVars.get(0)).getLexicalForm()); totalInd = Integer.parseInt(soln.getLiteral(resultVars.get(0)).getLexicalForm());
} }
CalculateParameters.totalInd = totalInd; //CalculateParameters.totalInd = totalInd;
log.info("Total number of individuals in the system are : " + CalculateParameters.totalInd); //log.info("Total number of individuals in the system are : " + CalculateParameters.totalInd);
}catch(Throwable t){ }catch(Throwable t){
log.error(t,t); log.error(t,t);
}finally{ }finally{