10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 13:53:48 +01:00

Add excitation count in statistics

This commit is contained in:
Mickaël Véril 2020-04-09 13:01:22 +02:00
parent e2485a833f
commit 29df32215f

View File

@ -289,6 +289,7 @@ draft: false
$(row).append(thdoi) $(row).append(thdoi)
const noNanVals = (vals.every((v) => Number.isNaN(v))) ? vals : (vals.filter((v) => !Number.isNaN(v))) const noNanVals = (vals.every((v) => Number.isNaN(v))) ? vals : (vals.filter((v) => !Number.isNaN(v)))
const avals = noNanVals.map(v => Math.abs(v)) const avals = noNanVals.map(v => Math.abs(v))
th.clone().text(noNanVals.length).appendTo(row)
for (const val of [ss.min(noNanVals), ss.max(noNanVals), ss.mean(noNanVals), ss.mean(avals), ss.median(noNanVals), ss.median(avals), ss.rootMeanSquare(noNanVals), ss.variance(noNanVals), ss.standardDeviation(noNanVals)]) { for (const val of [ss.min(noNanVals), ss.max(noNanVals), ss.mean(noNanVals), ss.mean(avals), ss.median(noNanVals), ss.median(avals), ss.rootMeanSquare(noNanVals), ss.variance(noNanVals), ss.standardDeviation(noNanVals)]) {
$("<td/>").text(noNanFixed(val, 2)).appendTo(row) $("<td/>").text(noNanFixed(val, 2)).appendTo(row)
} }
@ -644,6 +645,7 @@ draft: false
<thead class="sticky"> <thead class="sticky">
<th scope="col">Method</th> <th scope="col">Method</th>
<th scope="col">Set</th> <th scope="col">Set</th>
<th scope="col">Count</th>
<th scope="col">Min</th> <th scope="col">Min</th>
<th scope="col">Max</th> <th scope="col">Max</th>
<th scope="col">MSE</th> <th scope="col">MSE</th>