qesuite 1.0.40 → 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 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
@@ -3727,7 +3727,7 @@ function QQDistributionModificationX(p, distribution, data) {
3727
3727
  }
3728
3728
  return p;
3729
3729
  }
3730
- function CreateControlChart(data, chartTitle, UCL, LCL) {
3730
+ function CreateControlChart(data, chartTitle, UCL, LCL, controlTests) {
3731
3731
  let centerline = Mean(data);
3732
3732
  let std = StDev.S(data);
3733
3733
  if (UCL === void 0) {
@@ -3747,7 +3747,7 @@ function CreateControlChart(data, chartTitle, UCL, LCL) {
3747
3747
  ];
3748
3748
  let chartSettings = new ChartSettings();
3749
3749
  chartSettings.axis.y.customGridlines = customGridlines;
3750
- MarkOutOfControl(dataSet, UCL, LCL, centerline, std);
3750
+ MarkOutOfControl(dataSet, UCL, LCL, centerline, std, void 0, controlTests);
3751
3751
  let graph = CreateScatterPlot([dataSet], chartTitle, chartSettings);
3752
3752
  return graph;
3753
3753
  }
package/dist/index.mjs CHANGED
@@ -3640,7 +3640,7 @@ function QQDistributionModificationX(p, distribution, data) {
3640
3640
  }
3641
3641
  return p;
3642
3642
  }
3643
- function CreateControlChart(data, chartTitle, UCL, LCL) {
3643
+ function CreateControlChart(data, chartTitle, UCL, LCL, controlTests) {
3644
3644
  let centerline = Mean(data);
3645
3645
  let std = StDev.S(data);
3646
3646
  if (UCL === void 0) {
@@ -3660,7 +3660,7 @@ function CreateControlChart(data, chartTitle, UCL, LCL) {
3660
3660
  ];
3661
3661
  let chartSettings = new ChartSettings();
3662
3662
  chartSettings.axis.y.customGridlines = customGridlines;
3663
- MarkOutOfControl(dataSet, UCL, LCL, centerline, std);
3663
+ MarkOutOfControl(dataSet, UCL, LCL, centerline, std, void 0, controlTests);
3664
3664
  let graph = CreateScatterPlot([dataSet], chartTitle, chartSettings);
3665
3665
  return graph;
3666
3666
  }
package/index.ts CHANGED
@@ -3574,7 +3574,7 @@ 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: number[] = [1]) {
3577
+ function MarkOutOfControl(data: DataSet, UCL: number, LCL: number, CL?: any, std?: any, display = new CanvasDrawSettings("red", "red", 1, 1), controlTests: any = [1]) {
3578
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;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qesuite",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
4
4
  "description": "Performs advanced statistical analysis of data. Specifically designed for engineering statistical analysis",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -0,0 +1 @@
1
+ -added ability to pick control tests on CreateControlChart()