Changeset: 121993c105a5 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=121993c105a5
Modified Files:
monetdb5/extras/rdf/rdfschema.c
monetdb5/modules/kernel/bat5.c
Branch: rdf
Log Message:
Show the number of NULLs
diffs (24 lines):
diff --git a/monetdb5/extras/rdf/rdfschema.c b/monetdb5/extras/rdf/rdfschema.c
--- a/monetdb5/extras/rdf/rdfschema.c
+++ b/monetdb5/extras/rdf/rdfschema.c
@@ -9137,6 +9137,7 @@ void computeMetricsQForRefinedTable(CSse
printf("Refined Table: Performance metric Q = (weighting %f)/(totalCov
%d * numTbl %d) \n", Q,totalCov, numTables);
printf("Average precision = %f\n",(float)totalPrecision/numTables);
printf("Overall precision = %f (overfill %lld / overalMaxFill %lld)\n",
(float) overalFill/overalMaxFill, overalFill, overalMaxFill);
+ printf("Number of NULLs = %lld | Ratio in all cells: %f\n",
overalMaxFill - overalFill, (float) (overalMaxFill - overalFill)/overalMaxFill);
Q = Q/((float)totalCov * numTables);
diff --git a/monetdb5/modules/kernel/bat5.c b/monetdb5/modules/kernel/bat5.c
--- a/monetdb5/modules/kernel/bat5.c
+++ b/monetdb5/modules/kernel/bat5.c
@@ -258,8 +258,8 @@ BKCsamplebatUni(bat *ret, bat *bid, cons
throw(MAL, "bat.BKCsamplebatUni", GDK_EXCEPTION);
for (i = 0; i < sampsize; i++){
+ nextpos = step * i;
BUNappend(bn, BUNtail(bi, (oid) nextpos), FALSE);
- nextpos += step;
}
*ret = bn->batCacheid;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list