@nova-ui/dashboards 15.0.3 → 15.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.mjs +2 -2
- package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.mjs +1 -1
- package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.mjs +1 -1
- package/esm2020/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.mjs +1 -1
- package/esm2020/lib/components/timeseries-widget/timeseries-inspection-menu/timeseries-inspection-menu.component.mjs +1 -1
- package/esm2020/lib/components/timeseries-widget/timeseries-scales.service.mjs +2 -2
- package/esm2020/lib/components/timeseries-widget/timeseries-widget.component.mjs +1 -1
- package/esm2020/lib/components/timeseries-widget/transformer/loess.mjs +5 -4
- package/esm2020/lib/components/widget/widget-header/widget-header.component.mjs +1 -1
- package/fesm2015/nova-ui-dashboards.mjs +4 -3
- package/fesm2015/nova-ui-dashboards.mjs.map +1 -1
- package/fesm2020/nova-ui-dashboards.mjs +4 -3
- package/fesm2020/nova-ui-dashboards.mjs.map +1 -1
- package/package.json +3 -3
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.js +7 -7
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/timeseries-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-area-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-bar-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/chart-presets/xy-chart/chart-types/stacked-percentage-area-chart.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-scales.service.js +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-scales.service.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/timeseries-widget.component.js.map +1 -1
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/loess.js +4 -3
- package/sdk/atoms/src/lib/components/timeseries-widget/transformer/loess.js.map +1 -1
|
@@ -6940,7 +6940,7 @@ function loess() {
|
|
|
6940
6940
|
// (section "Weighted least squares")
|
|
6941
6941
|
let sumWeights = 0, sumX = 0, sumXSquared = 0, sumY = 0, sumXY = 0, denom = Math.abs(1 / (xval[edge] - x));
|
|
6942
6942
|
for (let k = ileft; k <= iright; ++k) {
|
|
6943
|
-
|
|
6943
|
+
const xk = xval[k], yk = yval[k], dist = k < i ? x - xk : xk - x, w = science_stats_loessTricube(dist * denom) *
|
|
6944
6944
|
robustnessWeights[k] *
|
|
6945
6945
|
weights[k], xkw = xk * w;
|
|
6946
6946
|
sumWeights += w;
|
|
@@ -7011,6 +7011,7 @@ function science_stats_loessFiniteReal(values) {
|
|
|
7011
7011
|
return true;
|
|
7012
7012
|
}
|
|
7013
7013
|
function science_stats_loessStrictlyIncreasing(xval) {
|
|
7014
|
+
// eslint-disable-next-line prefer-const
|
|
7014
7015
|
let n = xval.length, i = 0;
|
|
7015
7016
|
while (++i < n) {
|
|
7016
7017
|
if (xval[i - 1] >= xval[i]) {
|
|
@@ -7052,7 +7053,7 @@ function median(x) {
|
|
|
7052
7053
|
// Uses R's quantile algorithm type=7.
|
|
7053
7054
|
function quantiles(d, quantiles) {
|
|
7054
7055
|
d = d.slice().sort(ascending);
|
|
7055
|
-
|
|
7056
|
+
const n1 = d.length - 1;
|
|
7056
7057
|
return quantiles.map(function (q) {
|
|
7057
7058
|
if (q === 0) {
|
|
7058
7059
|
return d[0];
|
|
@@ -7060,7 +7061,7 @@ function quantiles(d, quantiles) {
|
|
|
7060
7061
|
else if (q === 1) {
|
|
7061
7062
|
return d[n1];
|
|
7062
7063
|
}
|
|
7063
|
-
|
|
7064
|
+
const index = 1 + q * n1, lo = Math.floor(index), h = index - lo, a = d[lo - 1];
|
|
7064
7065
|
return h === 0 ? a : a + h * (d[lo] - a);
|
|
7065
7066
|
});
|
|
7066
7067
|
}
|