qesuite 1.0.24 → 1.0.26

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 CHANGED
@@ -3428,8 +3428,8 @@ function G1(data, tolerance, referenceValue) {
3428
3428
  bias: Bias,
3429
3429
  t: T,
3430
3430
  p: P,
3431
- Var_Rpt: K / Cg,
3432
- Var_RptBias: K / Cgk
3431
+ Var_Rpt: K / Cg / 100,
3432
+ Var_RptBias: K / Cgk / 100
3433
3433
  };
3434
3434
  }
3435
3435
  function GageEvaluation(VarianceComponents2, tolerance) {
@@ -3617,9 +3617,11 @@ function VarianceComponents(ANOVA, data) {
3617
3617
  function G1Graphs(data, tolerance, referenceValue, name = "Results") {
3618
3618
  if (typeof tolerance === "string" && name === "Results") {
3619
3619
  name = tolerance;
3620
- tolerance = new Specification(tolerance).full_tolerance;
3621
3620
  }
3622
3621
  ;
3622
+ if (typeof tolerance === "string") {
3623
+ tolerance = new Specification(tolerance).full_tolerance;
3624
+ }
3623
3625
  let g1Results = G1(data, tolerance, referenceValue);
3624
3626
  if (!referenceValue) {
3625
3627
  referenceValue = Mean(data);
@@ -3644,7 +3646,7 @@ function G1Graphs(data, tolerance, referenceValue, name = "Results") {
3644
3646
  return new CustomGridline(i + 1, void 0, void 0, void 0, void 0, true);
3645
3647
  });
3646
3648
  chartSettings.axis.x.showAutoGridlines = false;
3647
- let scatterplot = CreateScatterPlot([dataset], "Run Chart of Results", chartSettings);
3649
+ let scatterplot = CreateScatterPlot([dataset], `Run Chart of ${name}`, chartSettings);
3648
3650
  return {
3649
3651
  ...g1Results,
3650
3652
  charts: {
package/dist/index.mjs CHANGED
@@ -3341,8 +3341,8 @@ function G1(data, tolerance, referenceValue) {
3341
3341
  bias: Bias,
3342
3342
  t: T,
3343
3343
  p: P,
3344
- Var_Rpt: K / Cg,
3345
- Var_RptBias: K / Cgk
3344
+ Var_Rpt: K / Cg / 100,
3345
+ Var_RptBias: K / Cgk / 100
3346
3346
  };
3347
3347
  }
3348
3348
  function GageEvaluation(VarianceComponents2, tolerance) {
@@ -3530,9 +3530,11 @@ function VarianceComponents(ANOVA, data) {
3530
3530
  function G1Graphs(data, tolerance, referenceValue, name = "Results") {
3531
3531
  if (typeof tolerance === "string" && name === "Results") {
3532
3532
  name = tolerance;
3533
- tolerance = new Specification(tolerance).full_tolerance;
3534
3533
  }
3535
3534
  ;
3535
+ if (typeof tolerance === "string") {
3536
+ tolerance = new Specification(tolerance).full_tolerance;
3537
+ }
3536
3538
  let g1Results = G1(data, tolerance, referenceValue);
3537
3539
  if (!referenceValue) {
3538
3540
  referenceValue = Mean(data);
@@ -3557,7 +3559,7 @@ function G1Graphs(data, tolerance, referenceValue, name = "Results") {
3557
3559
  return new CustomGridline(i + 1, void 0, void 0, void 0, void 0, true);
3558
3560
  });
3559
3561
  chartSettings.axis.x.showAutoGridlines = false;
3560
- let scatterplot = CreateScatterPlot([dataset], "Run Chart of Results", chartSettings);
3562
+ let scatterplot = CreateScatterPlot([dataset], `Run Chart of ${name}`, chartSettings);
3561
3563
  return {
3562
3564
  ...g1Results,
3563
3565
  charts: {
package/index.ts CHANGED
@@ -3990,8 +3990,8 @@ export function G1(data: any, tolerance: any, referenceValue?: number){
3990
3990
  bias: Bias,
3991
3991
  t: T,
3992
3992
  p: P,
3993
- Var_Rpt: K/Cg,
3994
- Var_RptBias: K/Cgk
3993
+ Var_Rpt: (K/Cg)/100,
3994
+ Var_RptBias: (K/Cgk)/100
3995
3995
  }
3996
3996
  }
3997
3997
 
@@ -4219,8 +4219,10 @@ export function VarianceComponents(ANOVA: any, data: GRRData){
4219
4219
  export function G1Graphs(data: any, tolerance: any, referenceValue: number, name: string = "Results"){
4220
4220
  if(typeof tolerance === "string" && name === "Results"){
4221
4221
  name = tolerance
4222
- tolerance = new Specification(tolerance).full_tolerance;
4223
4222
  };
4223
+ if(typeof tolerance === "string"){
4224
+ tolerance = new Specification(tolerance).full_tolerance;
4225
+ }
4224
4226
 
4225
4227
  let g1Results = G1(data, tolerance, referenceValue);
4226
4228
  if(!referenceValue){referenceValue = Mean(data)}
@@ -4247,7 +4249,7 @@ export function G1Graphs(data: any, tolerance: any, referenceValue: number, name
4247
4249
  chartSettings.axis.x.customGridlines = data.map((d: any, i: number) => {return new CustomGridline(i+1, undefined, undefined, undefined, undefined, true)})
4248
4250
  chartSettings.axis.x.showAutoGridlines = false;
4249
4251
 
4250
- let scatterplot = CreateScatterPlot([dataset], 'Run Chart of Results', chartSettings);
4252
+ let scatterplot = CreateScatterPlot([dataset], `Run Chart of ${name}`, chartSettings);
4251
4253
 
4252
4254
  return {
4253
4255
  ...g1Results,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qesuite",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
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
+ Fixed unexpected behavior in G1Graphs causing tolerance to remain unparsed if name was passed as a parameter and passed name object to the graph generation.
@@ -0,0 +1 @@
1
+ Changed G1().Var \_Rpt && \_RptBias to output as decimals not percents so formulas are now divided by 100 to make it easier to format as percents in other software.