List of usage examples for java.lang StrictMath log
public static native double log(double a);
From source file:ubic.gemma.ontology.GoMetric.java
/** * @return Jiang semantic similarity measure between two terms *///from ww w .j a va 2 s . c o m private Double calcJiang(Double pmin, Double probM, Double probC) { double scoreJiang = 1 / ((-1 * StrictMath.log(probM)) + (-1 * StrictMath.log(probC)) - (-2 * StrictMath.log(pmin)) + 1); return scoreJiang; }
From source file:ubic.gemma.ontology.GoMetric.java
/** * @return Lin semantic similarity measure between two terms *///w w w . j a v a 2 s .c o m private Double calcLin(Double pmin, Double probM, Double probC) { double scoreLin = (2 * (StrictMath.log(pmin))) / ((StrictMath.log(probM)) + (StrictMath.log(probC))); return scoreLin; }
From source file:ubic.gemma.ontology.GoMetric.java
/** * @return Resnik semantic similarity measure between two terms *//*from ww w. j a v a 2 s . com*/ private Double calcResnik(Double pmin) { double scoreResnik = -1 * (StrictMath.log(pmin)); return scoreResnik; }