本文整理了Java中org.molgenis.data.Entity.getDouble()
方法的一些代码示例,展示了Entity.getDouble()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Entity.getDouble()
方法的具体详情如下:
包路径:org.molgenis.data.Entity
类名称:Entity
方法名:getDouble
暂无
代码示例来源:origin: org.molgenis/molgenis-ontology-core
@Override
public Double getTermFrequency(String term) {
Entity entity = getTermFrequencyEntity(term);
if (entity == null) return null;
else return entity.getDouble(FREQUENCY);
}
代码示例来源:origin: org.molgenis/molgenis-settings
@Override
public Double getDouble(String attributeName) {
return getEntity().getDouble(attributeName);
}
代码示例来源:origin: org.molgenis/molgenis-data-validation
private static ConstraintViolation checkDecimal(
Entity entity, Attribute attribute, EntityType entityType) {
try {
entity.getDouble(attribute.getName());
return null;
} catch (Exception e) {
return createConstraintViolation(entity, attribute, entityType);
}
}
代码示例来源:origin: org.molgenis/molgenis-ontology
Entity addLexicalScoreToMatchedEntity(
Entity inputEntity,
Entity ontologyTerm,
String ontologyIri) // TODO Change 'Entity ontologyTerm' to 'OntologyTerm ontologyTerm'
{
double maxNgramScore = 0;
double maxNgramIDFScore = 0;
for (String inputAttrName : inputEntity.getAttributeNames()) {
String queryString = inputEntity.getString(inputAttrName);
if (StringUtils.isNotEmpty(queryString) && isAttrNameValidForLexicalMatch(inputAttrName)) {
Entity topMatchedSynonymEntity =
findSynonymWithHighestNgramScore(ontologyIri, queryString, ontologyTerm);
if (maxNgramScore < topMatchedSynonymEntity.getDouble(SCORE)) {
maxNgramScore = topMatchedSynonymEntity.getDouble(SCORE);
}
if (maxNgramIDFScore < topMatchedSynonymEntity.getDouble(COMBINED_SCORE)) {
maxNgramIDFScore = topMatchedSynonymEntity.getDouble(COMBINED_SCORE);
}
}
}
OntologyTermHitEntity mapEntity =
new OntologyTermHitEntity(ontologyTerm, ontologyTermHitMetaData);
mapEntity.set(SCORE, maxNgramScore);
mapEntity.set(COMBINED_SCORE, maxNgramIDFScore);
return mapEntity;
}
代码示例来源:origin: org.molgenis/molgenis-ontology
entity2.getDouble(COMBINED_SCORE).compareTo(entity1.getDouble(COMBINED_SCORE)));
代码示例来源:origin: org.molgenis/molgenis-ontology
.toSortedList(
(entity1, entity2) ->
entity2.getDouble(SCORE).compareTo(entity1.getDouble(SCORE)));
double topNgramScore = firstMatchedSynonymEntity.getDouble(SCORE);
String topMatchedSynonym =
firstMatchedSynonymEntity.getString(
firstMatchedSynonymEntity.set(
COMBINED_SCORE,
(firstMatchedSynonymEntity.getDouble(COMBINED_SCORE)
+ weightedWordSimilarity.get(word))));
代码示例来源:origin: org.molgenis/molgenis-web
break;
case DECIMAL:
result.addProperty(attributeName, entity.getDouble(attributeName));
break;
case INT:
代码示例来源:origin: org.molgenis/molgenis-ontology
MatchingTaskContentMetaData.VALIDATED,
resultEntity.getBoolean(MatchingTaskContentMetaData.VALIDATED));
Double score = resultEntity.getDouble(MatchingTaskContentMetaData.SCORE);
if (score != null) {
row.set(MatchingTaskContentMetaData.SCORE, format.format(score));
代码示例来源:origin: org.molgenis/molgenis-data-rest
break;
case DECIMAL:
responseData.put(attrName, entity.getDouble(attrName));
break;
case EMAIL:
代码示例来源:origin: org.molgenis/molgenis-js
value = entity.getDouble(attrName);
break;
case EMAIL:
代码示例来源:origin: org.molgenis/molgenis-data-validation
return entity.getBoolean(attributeName);
case DECIMAL:
return entity.getDouble(attributeName);
case LONG:
return entity.getLong(attributeName);
代码示例来源:origin: org.molgenis/molgenis-data-postgresql
return instant != null ? instant.truncatedTo(ChronoUnit.SECONDS).atOffset(UTC) : null;
case DECIMAL:
return entity.getDouble(attrName);
case EMAIL:
case ENUM:
代码示例来源:origin: org.molgenis/molgenis-fair
break;
case DECIMAL:
model.add(subject, predicate, valueFactory.createLiteral(objectEntity.getDouble(name)));
break;
case LONG:
内容来源于网络,如有侵权,请联系作者删除!