qesuite 1.0.38 → 1.0.40
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/dist/index.js +4 -2
- package/dist/index.mjs +4 -2
- package/index.ts +2 -2
- package/package.json +1 -1
- package/versions/1_0_39.md +1 -0
- package/versions/1_0_40.md +1 -0
package/dist/index.js
CHANGED
|
@@ -3194,7 +3194,9 @@ function CreateScatterPlot(data, title, chartSettings) {
|
|
|
3194
3194
|
}
|
|
3195
3195
|
function MarkOutOfControl(data, UCL, LCL, CL, std, display = new CanvasDrawSettings("red", "red", 1, 1), controlTests = [1]) {
|
|
3196
3196
|
if (CL === void 0) {
|
|
3197
|
-
CL = Mean(
|
|
3197
|
+
CL = Mean(data.values.map((v) => {
|
|
3198
|
+
return v.y;
|
|
3199
|
+
}));
|
|
3198
3200
|
}
|
|
3199
3201
|
if (std === void 0) {
|
|
3200
3202
|
std = (CL - LCL) / 3;
|
|
@@ -3679,7 +3681,7 @@ function QQPlotChart(data, distribution = "Normal") {
|
|
|
3679
3681
|
{ key: "SW(R):", value: SWR.W },
|
|
3680
3682
|
{ key: "p-value:", value: SWR.p },
|
|
3681
3683
|
{ key: "", value: "" }
|
|
3682
|
-
], 1075,
|
|
3684
|
+
], 1075, 50, 175, 100, "", 30);
|
|
3683
3685
|
}
|
|
3684
3686
|
} else {
|
|
3685
3687
|
let dist = distribution.replace("-", "").replace("arameter", "").replace(/\s/g, "");
|
package/dist/index.mjs
CHANGED
|
@@ -3107,7 +3107,9 @@ function CreateScatterPlot(data, title, chartSettings) {
|
|
|
3107
3107
|
}
|
|
3108
3108
|
function MarkOutOfControl(data, UCL, LCL, CL, std, display = new CanvasDrawSettings("red", "red", 1, 1), controlTests = [1]) {
|
|
3109
3109
|
if (CL === void 0) {
|
|
3110
|
-
CL = Mean(
|
|
3110
|
+
CL = Mean(data.values.map((v) => {
|
|
3111
|
+
return v.y;
|
|
3112
|
+
}));
|
|
3111
3113
|
}
|
|
3112
3114
|
if (std === void 0) {
|
|
3113
3115
|
std = (CL - LCL) / 3;
|
|
@@ -3592,7 +3594,7 @@ function QQPlotChart(data, distribution = "Normal") {
|
|
|
3592
3594
|
{ key: "SW(R):", value: SWR.W },
|
|
3593
3595
|
{ key: "p-value:", value: SWR.p },
|
|
3594
3596
|
{ key: "", value: "" }
|
|
3595
|
-
], 1075,
|
|
3597
|
+
], 1075, 50, 175, 100, "", 30);
|
|
3596
3598
|
}
|
|
3597
3599
|
} else {
|
|
3598
3600
|
let dist = distribution.replace("-", "").replace("arameter", "").replace(/\s/g, "");
|
package/index.ts
CHANGED
|
@@ -3575,7 +3575,7 @@ export function CreateScatterPlot(data: DataSet[], title?: string, chartSettings
|
|
|
3575
3575
|
* @param display Display settings for out-of-control points. DEFAULT: RED SQUARE
|
|
3576
3576
|
*/
|
|
3577
3577
|
function MarkOutOfControl(data: DataSet, UCL: number, LCL: number, CL?: any, std?: any, display = new CanvasDrawSettings("red", "red", 1, 1), controlTests: number[] = [1]) {
|
|
3578
|
-
if(CL === undefined){CL = Mean(
|
|
3578
|
+
if(CL === undefined){CL = Mean(data.values.map(v => {return v.y}))}
|
|
3579
3579
|
if(std === undefined){std = (CL - LCL)/3}
|
|
3580
3580
|
let Test2 = 0;
|
|
3581
3581
|
let Test3 = 0;
|
|
@@ -4178,7 +4178,7 @@ export function QQPlotChart(data: number[], distribution: string = 'Normal'){
|
|
|
4178
4178
|
{ key: "KS:", value: KS.KS }, { key: "p-value:", value: KS.p }, { key: "", value: "" },
|
|
4179
4179
|
{ key: "Lf:", value: LF.KS }, { key: "p-value:", value: LF.p }, { key: "", value: "" },
|
|
4180
4180
|
{ key: "RJ:", value: RJ.RJ }, { key: "crit.:", value: RJ.critical }, { key: "", value: "" },
|
|
4181
|
-
{ key: "SW(R):", value: SWR.W }, { key: "p-value:", value: SWR.p }, { key: "", value: "" },], 1075,
|
|
4181
|
+
{ key: "SW(R):", value: SWR.W }, { key: "p-value:", value: SWR.p }, { key: "", value: "" },], 1075, 50, 175, 100, "", 30);
|
|
4182
4182
|
}
|
|
4183
4183
|
}else{
|
|
4184
4184
|
let dist = distribution.replace("-", "").replace("arameter", "").replace(/\s/g, "");
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
- adjust normality results chart location on qqplot
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
- fixed bug in control chart that calculated CL as Mean(UCL, LCL) now CL = Mean(data)
|