qesuite 1.0.39 → 1.0.41
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -3
- package/dist/index.mjs +5 -3
- package/index.ts +4 -4
- package/package.json +1 -1
- package/versions/1_0_40.md +1 -0
- package/versions/1_0_41.md +1 -0
package/dist/index.d.mts
CHANGED
|
@@ -967,7 +967,7 @@ declare function CreateSummaryChart(charts: HTMLCanvasElement[], title: string):
|
|
|
967
967
|
declare function CreateStackedChart(charts: Chart[], title?: string, chartSettings?: ChartSettings): HTMLCanvasElement;
|
|
968
968
|
declare function GetFunctionValues(callback: Function, range: number[], count: number): DataSet;
|
|
969
969
|
declare function QQPlotChart(data: number[], distribution?: string): HTMLCanvasElement;
|
|
970
|
-
declare function CreateControlChart(data: number[], chartTitle?: string, UCL?: number, LCL?: number): HTMLCanvasElement;
|
|
970
|
+
declare function CreateControlChart(data: number[], chartTitle?: string, UCL?: number, LCL?: number, controlTests?: any): HTMLCanvasElement;
|
|
971
971
|
/** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
972
972
|
*/
|
|
973
973
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -967,7 +967,7 @@ declare function CreateSummaryChart(charts: HTMLCanvasElement[], title: string):
|
|
|
967
967
|
declare function CreateStackedChart(charts: Chart[], title?: string, chartSettings?: ChartSettings): HTMLCanvasElement;
|
|
968
968
|
declare function GetFunctionValues(callback: Function, range: number[], count: number): DataSet;
|
|
969
969
|
declare function QQPlotChart(data: number[], distribution?: string): HTMLCanvasElement;
|
|
970
|
-
declare function CreateControlChart(data: number[], chartTitle?: string, UCL?: number, LCL?: number): HTMLCanvasElement;
|
|
970
|
+
declare function CreateControlChart(data: number[], chartTitle?: string, UCL?: number, LCL?: number, controlTests?: any): HTMLCanvasElement;
|
|
971
971
|
/** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
972
972
|
*/
|
|
973
973
|
/**
|
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;
|
|
@@ -3725,7 +3727,7 @@ function QQDistributionModificationX(p, distribution, data) {
|
|
|
3725
3727
|
}
|
|
3726
3728
|
return p;
|
|
3727
3729
|
}
|
|
3728
|
-
function CreateControlChart(data, chartTitle, UCL, LCL) {
|
|
3730
|
+
function CreateControlChart(data, chartTitle, UCL, LCL, controlTests) {
|
|
3729
3731
|
let centerline = Mean(data);
|
|
3730
3732
|
let std = StDev.S(data);
|
|
3731
3733
|
if (UCL === void 0) {
|
|
@@ -3745,7 +3747,7 @@ function CreateControlChart(data, chartTitle, UCL, LCL) {
|
|
|
3745
3747
|
];
|
|
3746
3748
|
let chartSettings = new ChartSettings();
|
|
3747
3749
|
chartSettings.axis.y.customGridlines = customGridlines;
|
|
3748
|
-
MarkOutOfControl(dataSet, UCL, LCL, centerline, std);
|
|
3750
|
+
MarkOutOfControl(dataSet, UCL, LCL, centerline, std, void 0, controlTests);
|
|
3749
3751
|
let graph = CreateScatterPlot([dataSet], chartTitle, chartSettings);
|
|
3750
3752
|
return graph;
|
|
3751
3753
|
}
|
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;
|
|
@@ -3638,7 +3640,7 @@ function QQDistributionModificationX(p, distribution, data) {
|
|
|
3638
3640
|
}
|
|
3639
3641
|
return p;
|
|
3640
3642
|
}
|
|
3641
|
-
function CreateControlChart(data, chartTitle, UCL, LCL) {
|
|
3643
|
+
function CreateControlChart(data, chartTitle, UCL, LCL, controlTests) {
|
|
3642
3644
|
let centerline = Mean(data);
|
|
3643
3645
|
let std = StDev.S(data);
|
|
3644
3646
|
if (UCL === void 0) {
|
|
@@ -3658,7 +3660,7 @@ function CreateControlChart(data, chartTitle, UCL, LCL) {
|
|
|
3658
3660
|
];
|
|
3659
3661
|
let chartSettings = new ChartSettings();
|
|
3660
3662
|
chartSettings.axis.y.customGridlines = customGridlines;
|
|
3661
|
-
MarkOutOfControl(dataSet, UCL, LCL, centerline, std);
|
|
3663
|
+
MarkOutOfControl(dataSet, UCL, LCL, centerline, std, void 0, controlTests);
|
|
3662
3664
|
let graph = CreateScatterPlot([dataSet], chartTitle, chartSettings);
|
|
3663
3665
|
return graph;
|
|
3664
3666
|
}
|
package/index.ts
CHANGED
|
@@ -3574,8 +3574,8 @@ export function CreateScatterPlot(data: DataSet[], title?: string, chartSettings
|
|
|
3574
3574
|
* @param std Standard Deviation of Data
|
|
3575
3575
|
* @param display Display settings for out-of-control points. DEFAULT: RED SQUARE
|
|
3576
3576
|
*/
|
|
3577
|
-
function MarkOutOfControl(data: DataSet, UCL: number, LCL: number, CL?: any, std?: any, display = new CanvasDrawSettings("red", "red", 1, 1), controlTests:
|
|
3578
|
-
if(CL === undefined){CL = Mean(
|
|
3577
|
+
function MarkOutOfControl(data: DataSet, UCL: number, LCL: number, CL?: any, std?: any, display = new CanvasDrawSettings("red", "red", 1, 1), controlTests: any = [1]) {
|
|
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;
|
|
@@ -4246,7 +4246,7 @@ function QQDistributionModificationX(p: number, distribution: string, data: numb
|
|
|
4246
4246
|
return p;
|
|
4247
4247
|
}
|
|
4248
4248
|
|
|
4249
|
-
export function CreateControlChart(data: number[], chartTitle?: string, UCL?: number, LCL?: number){
|
|
4249
|
+
export function CreateControlChart(data: number[], chartTitle?: string, UCL?: number, LCL?: number, controlTests?: any){
|
|
4250
4250
|
let centerline = Mean(data);
|
|
4251
4251
|
let std = StDev.S(data);
|
|
4252
4252
|
|
|
@@ -4266,7 +4266,7 @@ export function CreateControlChart(data: number[], chartTitle?: string, UCL?: nu
|
|
|
4266
4266
|
let chartSettings = new ChartSettings();
|
|
4267
4267
|
chartSettings.axis.y.customGridlines = customGridlines;
|
|
4268
4268
|
|
|
4269
|
-
MarkOutOfControl(dataSet, UCL, LCL, centerline, std);
|
|
4269
|
+
MarkOutOfControl(dataSet, UCL, LCL, centerline, std,undefined,controlTests);
|
|
4270
4270
|
|
|
4271
4271
|
let graph = CreateScatterPlot([dataSet], chartTitle, chartSettings);
|
|
4272
4272
|
return graph
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
- fixed bug in control chart that calculated CL as Mean(UCL, LCL) now CL = Mean(data)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
-added ability to pick control tests on CreateControlChart()
|