qesuite 1.0.10 → 1.0.11

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
@@ -216,7 +216,7 @@ declare function SixPack(data: number[], specification: QESpecification, title?:
216
216
  MovingRange: HTMLCanvasElement;
217
217
  NormalProbability: HTMLCanvasElement;
218
218
  LastObservations: HTMLCanvasElement;
219
- Summary: void | HTMLCanvasElement;
219
+ Summary: HTMLCanvasElement;
220
220
  };
221
221
  };
222
222
  declare function IndividualValuePlot(data: number[], title?: string, historicalMean?: number): HTMLCanvasElement;
@@ -731,7 +731,7 @@ declare function IndividualDistributionIdentification(data: number[]): {
731
731
  };
732
732
  };
733
733
  declare function IndividualDistributionPlots(data: number[]): {
734
- summary: void | HTMLCanvasElement;
734
+ summary: HTMLCanvasElement;
735
735
  normal: HTMLCanvasElement;
736
736
  boxCox: HTMLCanvasElement;
737
737
  exponential: HTMLCanvasElement;
@@ -911,7 +911,7 @@ declare function CreateSplitGraph(charts: QEChart[], title: string, chartSetting
911
911
  * @param title Chart Title
912
912
  * @param chartSettings Chart settings
913
913
  */
914
- declare function CreateSummaryChart(charts: HTMLCanvasElement[], title: string): void | HTMLCanvasElement;
914
+ declare function CreateSummaryChart(charts: HTMLCanvasElement[], title: string): HTMLCanvasElement;
915
915
  /**
916
916
  * Create a scatter plot
917
917
  * @param data An array of data sets to plot
@@ -1060,7 +1060,7 @@ declare function GRR_Graphs(data: any, tolerance: number, name?: string): {
1060
1060
  GageEvaluation: any;
1061
1061
  };
1062
1062
  charts: {
1063
- Summary: void | HTMLCanvasElement;
1063
+ Summary: HTMLCanvasElement;
1064
1064
  VarComp: HTMLCanvasElement;
1065
1065
  ByPart: HTMLCanvasElement;
1066
1066
  R: HTMLCanvasElement;
package/dist/index.d.ts CHANGED
@@ -216,7 +216,7 @@ declare function SixPack(data: number[], specification: QESpecification, title?:
216
216
  MovingRange: HTMLCanvasElement;
217
217
  NormalProbability: HTMLCanvasElement;
218
218
  LastObservations: HTMLCanvasElement;
219
- Summary: void | HTMLCanvasElement;
219
+ Summary: HTMLCanvasElement;
220
220
  };
221
221
  };
222
222
  declare function IndividualValuePlot(data: number[], title?: string, historicalMean?: number): HTMLCanvasElement;
@@ -731,7 +731,7 @@ declare function IndividualDistributionIdentification(data: number[]): {
731
731
  };
732
732
  };
733
733
  declare function IndividualDistributionPlots(data: number[]): {
734
- summary: void | HTMLCanvasElement;
734
+ summary: HTMLCanvasElement;
735
735
  normal: HTMLCanvasElement;
736
736
  boxCox: HTMLCanvasElement;
737
737
  exponential: HTMLCanvasElement;
@@ -911,7 +911,7 @@ declare function CreateSplitGraph(charts: QEChart[], title: string, chartSetting
911
911
  * @param title Chart Title
912
912
  * @param chartSettings Chart settings
913
913
  */
914
- declare function CreateSummaryChart(charts: HTMLCanvasElement[], title: string): void | HTMLCanvasElement;
914
+ declare function CreateSummaryChart(charts: HTMLCanvasElement[], title: string): HTMLCanvasElement;
915
915
  /**
916
916
  * Create a scatter plot
917
917
  * @param data An array of data sets to plot
@@ -1060,7 +1060,7 @@ declare function GRR_Graphs(data: any, tolerance: number, name?: string): {
1060
1060
  GageEvaluation: any;
1061
1061
  };
1062
1062
  charts: {
1063
- Summary: void | HTMLCanvasElement;
1063
+ Summary: HTMLCanvasElement;
1064
1064
  VarComp: HTMLCanvasElement;
1065
1065
  ByPart: HTMLCanvasElement;
1066
1066
  R: HTMLCanvasElement;
package/dist/index.js CHANGED
@@ -1836,7 +1836,7 @@ function IndividualDistributionIdentification(data) {
1836
1836
  scale: StDev.S(boxCoxData)
1837
1837
  },
1838
1838
  ...GoodnessOfFit.AndersonDarling.Test(boxCoxData, (x) => {
1839
- return Distributions.Normal.cdf(x, this.boxCox.location, this.boxCox.scale);
1839
+ return Distributions.Normal.cdf(x, Mean(boxCoxData), StDev.S(boxCoxData));
1840
1840
  })
1841
1841
  }
1842
1842
  };
@@ -2132,6 +2132,7 @@ function AddSolidBackground(canvas, color) {
2132
2132
  newCtx.drawImage(canvas, 0, 0);
2133
2133
  newCtx.closePath();
2134
2134
  }
2135
+ return newCanvas;
2135
2136
  }
2136
2137
  function AddPlotArea(ctx, chartSettings) {
2137
2138
  let width = chartSettings.width - chartSettings.margins.left - chartSettings.margins.right;
package/dist/index.mjs CHANGED
@@ -1749,7 +1749,7 @@ function IndividualDistributionIdentification(data) {
1749
1749
  scale: StDev.S(boxCoxData)
1750
1750
  },
1751
1751
  ...GoodnessOfFit.AndersonDarling.Test(boxCoxData, (x) => {
1752
- return Distributions.Normal.cdf(x, this.boxCox.location, this.boxCox.scale);
1752
+ return Distributions.Normal.cdf(x, Mean(boxCoxData), StDev.S(boxCoxData));
1753
1753
  })
1754
1754
  }
1755
1755
  };
@@ -2045,6 +2045,7 @@ function AddSolidBackground(canvas, color) {
2045
2045
  newCtx.drawImage(canvas, 0, 0);
2046
2046
  newCtx.closePath();
2047
2047
  }
2048
+ return newCanvas;
2048
2049
  }
2049
2050
  function AddPlotArea(ctx, chartSettings) {
2050
2051
  let width = chartSettings.width - chartSettings.margins.left - chartSettings.margins.right;
package/index.ts CHANGED
@@ -1903,7 +1903,7 @@ export function IndividualDistributionIdentification(data: number[]){
1903
1903
  location: Mean(boxCoxData),
1904
1904
  scale: StDev.S(boxCoxData)
1905
1905
  },
1906
- ...GoodnessOfFit.AndersonDarling.Test(boxCoxData, (x: number) => {return Distributions.Normal.cdf(x, this.boxCox.location, this.boxCox.scale)})
1906
+ ...GoodnessOfFit.AndersonDarling.Test(boxCoxData, (x: number) => {return Distributions.Normal.cdf(x, Mean(boxCoxData), StDev.S(boxCoxData))})
1907
1907
  }
1908
1908
  }
1909
1909
  console.log(returnerObj)
@@ -2357,6 +2357,8 @@ function AddSolidBackground(canvas: HTMLCanvasElement, color: string){
2357
2357
  newCtx.drawImage(canvas, 0, 0)
2358
2358
  newCtx.closePath();
2359
2359
  }
2360
+
2361
+ return newCanvas
2360
2362
  }
2361
2363
 
2362
2364
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qesuite",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
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
+ Previous release forgot to return the newCanvas element in AddSolidBackground, this has been corrected.