mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 05:43:46 +01:00
Change precision to two digits to follow same beaviour as QUEST#1 statistics
This commit is contained in:
parent
8cb95c952b
commit
6d47a909f8
@ -217,7 +217,7 @@ draft: false
|
|||||||
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))
|
||||||
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(noNanPrecision(val, 3)).appendTo(row)
|
$("<td/>").text(noNanPrecision(val, 2)).appendTo(row)
|
||||||
}
|
}
|
||||||
$(stb).append(row)
|
$(stb).append(row)
|
||||||
var box = {
|
var box = {
|
||||||
|
Loading…
Reference in New Issue
Block a user