git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/EcologicalEngine@111587 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
9863d9931a
commit
88f04a37db
|
@ -300,11 +300,11 @@ public class MathFunctions {
|
||||||
return "Poor";
|
return "Poor";
|
||||||
else if ((kappa>=0)&&(kappa<=0.20))
|
else if ((kappa>=0)&&(kappa<=0.20))
|
||||||
return "Slight";
|
return "Slight";
|
||||||
else if ((kappa>=0.21)&&(kappa<=0.40))
|
else if ((kappa>=0.20)&&(kappa<=0.40))
|
||||||
return "Fair";
|
return "Fair";
|
||||||
else if ((kappa>=0.41)&&(kappa<=0.60))
|
else if ((kappa>0.40)&&(kappa<=0.60))
|
||||||
return "Moderate";
|
return "Moderate";
|
||||||
else if ((kappa>=0.61)&&(kappa<=0.80))
|
else if ((kappa>0.60)&&(kappa<=0.80))
|
||||||
return "Substantial";
|
return "Substantial";
|
||||||
else if (kappa>=0.81)
|
else if (kappa>=0.81)
|
||||||
return "Almost Perfect";
|
return "Almost Perfect";
|
||||||
|
|
|
@ -203,7 +203,11 @@ public class DBScan implements Clusterer{
|
||||||
DatabaseFactory.executeSQLUpdate(DatabaseUtils.addColumnStatement(OccurrencePointsClusterTable, outliersColumn, outliersColumnType), dbHibConnection);
|
DatabaseFactory.executeSQLUpdate(DatabaseUtils.addColumnStatement(OccurrencePointsClusterTable, outliersColumn, outliersColumnType), dbHibConnection);
|
||||||
AnalysisLogger.getLogger().debug("Getting Samples");
|
AnalysisLogger.getLogger().debug("Getting Samples");
|
||||||
//build samples
|
//build samples
|
||||||
|
try{
|
||||||
getSamples();
|
getSamples();
|
||||||
|
}catch(Throwable e){
|
||||||
|
AnalysisLogger.getLogger().debug("Error getting samples for clustering: "+e.getLocalizedMessage());
|
||||||
|
}
|
||||||
status = 10f;
|
status = 10f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue