qesuite 1.0.1 → 1.0.3
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 +859 -5
- package/dist/index.d.ts +859 -5
- package/dist/index.js +2034 -2
- package/dist/index.mjs +2007 -1
- package/index.ts +2202 -5
- package/package.json +1 -1
- package/versions/1_0_1.md +137 -0
- package/versions/1_0_2.md +1 -0
- package/versions/1_0_3.md +1 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,862 @@
|
|
|
1
|
+
/** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
2
|
+
*/
|
|
3
|
+
declare class QESpecification {
|
|
4
|
+
constructor(spec: any, USL?: number, LSL?: number, tolerance?: number, tol_plus?: number, tol_minus?: number, units?: string);
|
|
5
|
+
nominal: number;
|
|
6
|
+
USL: number;
|
|
7
|
+
LSL: number;
|
|
8
|
+
units: string;
|
|
9
|
+
tolerance: number;
|
|
10
|
+
tol_plus: number;
|
|
11
|
+
tol_minus: number;
|
|
12
|
+
ParseSpec(spec: string): {
|
|
13
|
+
nominal: any;
|
|
14
|
+
USL: any;
|
|
15
|
+
LSL: any;
|
|
16
|
+
units: any;
|
|
17
|
+
tolerance: any;
|
|
18
|
+
tol_plus?: undefined;
|
|
19
|
+
tol_minus?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
nominal: any;
|
|
22
|
+
USL: any;
|
|
23
|
+
LSL: any;
|
|
24
|
+
units: any;
|
|
25
|
+
tol_plus: any;
|
|
26
|
+
tol_minus: any;
|
|
27
|
+
tolerance?: undefined;
|
|
28
|
+
};
|
|
29
|
+
SplitUnits(string: string): string[];
|
|
30
|
+
}
|
|
31
|
+
declare class GRR_Data {
|
|
32
|
+
constructor(operators: GRR_Operator[]);
|
|
33
|
+
operators: GRR_Operator[];
|
|
34
|
+
getPartsByIndex(index?: number): any[];
|
|
35
|
+
getPartCount(): number;
|
|
36
|
+
getReplicationCount(): number;
|
|
37
|
+
getOperatorCount(): number;
|
|
38
|
+
getOperatorMeans(): number[];
|
|
39
|
+
getPartMeans(): number[];
|
|
40
|
+
getGrandMean(): number;
|
|
41
|
+
}
|
|
42
|
+
declare class GRR_Operator {
|
|
43
|
+
constructor(replications: GRR_Replication[], name?: string);
|
|
44
|
+
replications: GRR_Replication[];
|
|
45
|
+
name: string;
|
|
46
|
+
getPartsByIndex(index?: number): any[];
|
|
47
|
+
getPartCount(): number;
|
|
48
|
+
getPartAverages(): number[];
|
|
49
|
+
getMean(): number;
|
|
50
|
+
}
|
|
51
|
+
declare class GRR_Replication {
|
|
52
|
+
constructor(parts: number[]);
|
|
53
|
+
parts: number[];
|
|
54
|
+
getPartsByIndex(index?: number): number[];
|
|
55
|
+
getPartCount(): number;
|
|
56
|
+
}
|
|
57
|
+
/** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
58
|
+
*/
|
|
59
|
+
declare const Capability: {
|
|
60
|
+
/**
|
|
61
|
+
* Evaluates and returns all four capability indices (Cp, Cpk, Pp, Ppk).
|
|
62
|
+
* @customfunction
|
|
63
|
+
* @param data The data to evaluate.
|
|
64
|
+
* @param spec The specification to evaluate the capability against.
|
|
65
|
+
*/
|
|
66
|
+
Analysis(data: number[], spec: QESpecification): {
|
|
67
|
+
Cp: number;
|
|
68
|
+
Cpk: number;
|
|
69
|
+
Pp: number;
|
|
70
|
+
Ppk: number;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Evaluates the capability index Cp(overall).
|
|
74
|
+
* @customfunction
|
|
75
|
+
* @param data The data to evaluate.
|
|
76
|
+
* @param spec The specification to evaluate the capability against.
|
|
77
|
+
*/
|
|
78
|
+
Cp(data: number[], spec: QESpecification): number;
|
|
79
|
+
/**
|
|
80
|
+
* Evaluates the capability index Cpk(overall).
|
|
81
|
+
* @customfunction
|
|
82
|
+
* @param data The data to evaluate.
|
|
83
|
+
* @param spec The specification to evaluate the capability against.
|
|
84
|
+
*/
|
|
85
|
+
Cpk(data: number[], spec: QESpecification): number;
|
|
86
|
+
/**
|
|
87
|
+
* Evaluates the capability index Pp(within).
|
|
88
|
+
* @customfunction
|
|
89
|
+
* @param data The data to evaluate.
|
|
90
|
+
* @param spec The specification to evaluate the capability against.
|
|
91
|
+
*/
|
|
92
|
+
Pp(data: number[], spec: QESpecification): number;
|
|
93
|
+
/**
|
|
94
|
+
* Evaluates the capability index Ppk(within).
|
|
95
|
+
* @customfunction
|
|
96
|
+
* @param data The data to evaluate.
|
|
97
|
+
* @param spec The specification to evaluate the capability against.
|
|
98
|
+
*/
|
|
99
|
+
Ppk(data: number[], spec: QESpecification): number;
|
|
100
|
+
};
|
|
101
|
+
/** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
102
|
+
*/
|
|
103
|
+
declare const Beta: {
|
|
104
|
+
/**
|
|
105
|
+
* Evaluates the continued fraction for incomplete beta function of x for the beta function with specified shape parameters a and b.
|
|
106
|
+
* @customfunction
|
|
107
|
+
* @param x The value to evaluate.
|
|
108
|
+
* @param a The first shape parameter; x^(a-1).
|
|
109
|
+
* @param b The second shape parameter; (1 - x)^(b-1).
|
|
110
|
+
*/
|
|
111
|
+
cf(x: number, a: number, b: number): any;
|
|
112
|
+
/**
|
|
113
|
+
* Evaluates the beta function of the specified shape parameters a and b.
|
|
114
|
+
* @customfunction
|
|
115
|
+
* @param a The first shape parameter; x^(a-1).
|
|
116
|
+
* @param b The second shape parameter; (1 - x)^(b-1).
|
|
117
|
+
*/
|
|
118
|
+
fn(a: number, b: number): number;
|
|
119
|
+
/**
|
|
120
|
+
* Evaluates the incomplete beta function of x for the beta function with specified shape parameters a and b.
|
|
121
|
+
* @customfunction
|
|
122
|
+
* @param x The value to evaluate.
|
|
123
|
+
* @param a The first shape parameter; x^(a-1).
|
|
124
|
+
* @param b The second shape parameter; (1 - x)^(b-1).
|
|
125
|
+
*/
|
|
126
|
+
inc(x: number, a: number, b: number): number;
|
|
127
|
+
};
|
|
128
|
+
declare const ERF: {
|
|
129
|
+
/**
|
|
130
|
+
* Evaluates the Gaussian error function for the specified value.
|
|
131
|
+
* @customfunction
|
|
132
|
+
* @param x The value to be evaluated.
|
|
133
|
+
**/
|
|
134
|
+
precise(x: number): number;
|
|
135
|
+
};
|
|
136
|
+
declare const Gamma: {
|
|
137
|
+
/**
|
|
138
|
+
* Evaluates the gamma function for the specified value.
|
|
139
|
+
* @customfunction
|
|
140
|
+
* @param x The value to be evaluated.
|
|
141
|
+
**/
|
|
142
|
+
fn(x: number): number;
|
|
143
|
+
/**
|
|
144
|
+
* Evaluates the natural log of the gamma function for the specified value.
|
|
145
|
+
* @customfunction
|
|
146
|
+
* @param x The value to be evaluated.
|
|
147
|
+
**/
|
|
148
|
+
ln(x: number): number;
|
|
149
|
+
/**
|
|
150
|
+
* Evaluates the digamma function for the specified value. This is the derivative of the gamma function.
|
|
151
|
+
* @customfunction
|
|
152
|
+
* @param x The value to be evaluated.
|
|
153
|
+
**/
|
|
154
|
+
Digamma(x: number): number;
|
|
155
|
+
/**
|
|
156
|
+
* Evaluates the trigamma function for the specified value.
|
|
157
|
+
* @customfunction
|
|
158
|
+
* @param x The value to be evaluated.
|
|
159
|
+
**/
|
|
160
|
+
Trigamma(x: number): number;
|
|
161
|
+
};
|
|
162
|
+
/** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
163
|
+
*/
|
|
1
164
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
165
|
+
* Uses Newton's method to find the root parameter of the provided parameterized function
|
|
166
|
+
* @customfunction
|
|
167
|
+
* @param parameter The parameter to solve. This must be input as a variable containing the initial guess. The function will mutate the parameter and return it.
|
|
168
|
+
* @param parameterizedFunction The function to be solved. This function must have one input which is the parameter being used to solve the function.
|
|
169
|
+
* @param derivativeFunction [OPTIONAL] The derivative of the function (also parameterized). If a derivative is not provided it will be estimated using other numerical methods.
|
|
170
|
+
*/
|
|
171
|
+
declare function NewtonRaphson(parameter: number, parameterizedFunction: Function, derivativeFunction?: Function): number;
|
|
172
|
+
/**
|
|
173
|
+
* Uses fixed point iteration to find the root parameter of the provided parameterized function
|
|
174
|
+
* @customfunction
|
|
175
|
+
* @param parameter The parameter to solve. This must be input as a variable containing the initial guess. The function will mutate the parameter and return it.
|
|
176
|
+
* @param parameterizedFunction The function to be solved. This function must have one input which is the parameter being used to solve the function.
|
|
177
|
+
*/
|
|
178
|
+
declare function FixedPointIteration(parameter: number, parameterizedFunction: Function): number;
|
|
179
|
+
/** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
180
|
+
*/
|
|
181
|
+
declare const Distributions: {
|
|
182
|
+
Beta: {
|
|
183
|
+
/**
|
|
184
|
+
* Cumulative Distribution Function. Calculates the probability of a random variable with a value less than or equal to x occuring from the beta distribution with the specified shape parameters a and b.
|
|
185
|
+
* @param x The value to evaluate.
|
|
186
|
+
* @param a The first shape parameter, x^(a-1).
|
|
187
|
+
* @param b The second shape parameter; (1 - x)^(b-1).
|
|
188
|
+
*/
|
|
189
|
+
cdf(x: number, a: number, b: number): number;
|
|
190
|
+
/**
|
|
191
|
+
* Probability Density Function. Calculates the probability of random variable x occuring from the beta distribution with the specified shape parameters a and b.
|
|
192
|
+
* @param x The value to evaluate.
|
|
193
|
+
* @param a The first shape parameter, x^(a-1).
|
|
194
|
+
* @param b The second shape parameter; (1 - x)^(b-1).
|
|
195
|
+
*/
|
|
196
|
+
pdf(x: number, a: number, b: number): number;
|
|
197
|
+
};
|
|
198
|
+
Exponential: {
|
|
199
|
+
/**
|
|
200
|
+
* Cumulative Distribution Function. Calculates the probability of a random variable with a value less than or equal to x occuring from the exponential distribution with the specified scale parameter and optional threshold parameter.
|
|
201
|
+
* @param x The value of x to evaluate the probability of the specified distribution
|
|
202
|
+
* @param scale (σ): The scale parameter of the specified distribution.
|
|
203
|
+
* @param threshold [OPTIONAL] (λ): The threshold parameter of the specified distribution.
|
|
204
|
+
*/
|
|
205
|
+
cdf(x: number, scale: number, threshold?: number): number;
|
|
206
|
+
/**
|
|
207
|
+
* Probability Density Function. Calculates the probability of random variable x occuring from the exponential distribution with the specified scale and optional threshold parameters.
|
|
208
|
+
* @param x The value of x to evaluate the probability of the specified distribution
|
|
209
|
+
* @param scale (σ): The scale parameter of the specified distribution.
|
|
210
|
+
* @param threshold [OPTIONAL] (λ): The threshold parameter of the specified distribution.
|
|
211
|
+
*/
|
|
212
|
+
pdf(x: number, scale: number, threshold?: number): number;
|
|
213
|
+
MLE: {
|
|
214
|
+
/**
|
|
215
|
+
* Estimates scale parameter of a one-parameter exponential distribution for the provided data using maximum likelihood estimation.
|
|
216
|
+
* @customfunction
|
|
217
|
+
* @param data The array of data to be parameterized
|
|
218
|
+
*/
|
|
219
|
+
oneParameter(data: number[]): {
|
|
220
|
+
scale: number;
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* Estimates scale and threshold parameters of a two-parameter exponential distribution for the provided data.
|
|
224
|
+
* @customfunction
|
|
225
|
+
* @param data The array of data to be parameterized
|
|
226
|
+
*/
|
|
227
|
+
twoParamerter(data: number[]): {
|
|
228
|
+
scale: number;
|
|
229
|
+
threshold: number;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
F: {
|
|
234
|
+
/**
|
|
235
|
+
* Cumulative Distribution Function. Calculates the probability of a random variable with a value less than or equal to x occuring from the F distribution with the specified degrees of freedom parameters. (LEFT TAILED F-TEST)
|
|
236
|
+
* @param f F value to evaluate
|
|
237
|
+
* @param df1 Numerator degrees of freedom
|
|
238
|
+
* @param df2 Denominator degrees of freedom
|
|
239
|
+
* @returns the Right-Tailed P-Value of the F Distribution
|
|
240
|
+
*/
|
|
241
|
+
cdf(x: number, df1: number, df2: number): number;
|
|
242
|
+
/**
|
|
243
|
+
* Calculates the right-tailed p-value of the supplied F distribution.
|
|
244
|
+
* @param f F value to evaluate
|
|
245
|
+
* @param df1 Numerator degrees of freedom
|
|
246
|
+
* @param df2 Denominator degrees of freedom
|
|
247
|
+
* @returns the Right-Tailed P-Value of the F Distribution
|
|
248
|
+
*/
|
|
249
|
+
RightTail(f: number, df1: number, df2: number): number;
|
|
250
|
+
};
|
|
251
|
+
Gamma: {
|
|
252
|
+
/**
|
|
253
|
+
* Cumulative Distribution Function. Calculates the probability of a random variable with a value less than or equal to x occuring from the gamma distribution with the specified shape, scale, and optional threshold parameters.
|
|
254
|
+
* @param x The value of x to evaluate the probability of the specified distribution
|
|
255
|
+
* @param shape (β): The shape parameter of the specified distribution.
|
|
256
|
+
* @param scale (σ): The scale parameter of the specified distribution.
|
|
257
|
+
* @param threshold [OPTIONAL] (λ): The threshold parameter of the specified distribution.
|
|
258
|
+
*/
|
|
259
|
+
/**
|
|
260
|
+
* Probability Density Function. Calculates the probability of random variable x occuring from the gamma distribution with the specified shape and scale parameters (and optional threshold).
|
|
261
|
+
* @param x The value of x to evaluate the probability of the specified distribution
|
|
262
|
+
* @param shape (β): The shape parameter of the specified distribution.
|
|
263
|
+
* @param scale (σ): The scale parameter of the specified distribution.
|
|
264
|
+
* @param threshold [OPTIONAL] (λ): The threshold parameter of the specified distribution.
|
|
265
|
+
*/
|
|
266
|
+
pdf(x: number, shape: number, scale: number, threshold?: number): number;
|
|
267
|
+
MLE: {
|
|
268
|
+
/**
|
|
269
|
+
* Estimates shape and scale parameters of a two-parameter gamma distribution for the provided data using maximum likelihood estimation.
|
|
270
|
+
* @customfunction
|
|
271
|
+
* @param data The array of data to be parameterized
|
|
272
|
+
*/
|
|
273
|
+
twoParameter(data: number[]): {
|
|
274
|
+
shape: number;
|
|
275
|
+
scale: number;
|
|
276
|
+
};
|
|
277
|
+
/**
|
|
278
|
+
* Estimates shape, scale, and threshold parameters of a three-parameter gamma distribution for the provided data using maximum likelihood estimation.
|
|
279
|
+
* @customfunction
|
|
280
|
+
* @param data The array of data to be parameterized
|
|
281
|
+
*/
|
|
282
|
+
threeParameter(data: number[]): {
|
|
283
|
+
shape: number;
|
|
284
|
+
scale: number;
|
|
285
|
+
threshold: number;
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
LargestExtremeValue: {
|
|
290
|
+
/**
|
|
291
|
+
* Cumulative Distribution Function. Calculates the probability of a random variable with a value less than or equal to x occuring from the largest extreme value distribution with the specified location and scale parameters.
|
|
292
|
+
* @param x The value of x to evaluate the probability of the specified distribution
|
|
293
|
+
* @param location (μ): The location parameter of the specified distribution.
|
|
294
|
+
* @param scale (σ): The scale parameter of the specified distribution.
|
|
295
|
+
*/
|
|
296
|
+
cdf(x: number, location: number, scale: number): number;
|
|
297
|
+
/**
|
|
298
|
+
* Probability Density Function. Calculates the probability of random variable x occuring from the largest extreme value distribution with the specified location and scale parameters.
|
|
299
|
+
* @param x The value of x to evaluate the probability of the specified distribution
|
|
300
|
+
* @param location (μ): The location parameter of the specified distribution.
|
|
301
|
+
* @param scale (σ): The scale parameter of the specified distribution.
|
|
302
|
+
*/
|
|
303
|
+
pdf(x: number, location: number, scale: number): number;
|
|
304
|
+
/**
|
|
305
|
+
* Estimates location and scale parameter of a LEV distribution for the provided data using maximum likelihood estimation.
|
|
306
|
+
* @param data The array of data to be parameterized
|
|
307
|
+
*/
|
|
308
|
+
MLE(data: number[]): {
|
|
309
|
+
location: number;
|
|
310
|
+
scale: number;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
Logistic: {
|
|
314
|
+
/**
|
|
315
|
+
* Cumulative Distribution Function. Calculates the probability of a random variable with a value less than or equal to x occuring from the logistic distribution with the specified location and scale parameters.
|
|
316
|
+
* @param x The value of x to evaluate the probability of the specified distribution
|
|
317
|
+
* @param location (μ): The location parameter of the specified distribution.
|
|
318
|
+
* @param scale (σ): The scale parameter of the specified distribution.
|
|
319
|
+
*/
|
|
320
|
+
cdf(x: number, location: number, scale: number): number;
|
|
321
|
+
/**
|
|
322
|
+
* Probability Density Function. Calculates the probability of random variable x occuring from the logistic distribution with the specified location and scale parameters.
|
|
323
|
+
* @param x The value of x to evaluate the probability of the specified distribution
|
|
324
|
+
* @param location (μ): The location parameter of the specified distribution.
|
|
325
|
+
* @param scale (σ): The scale parameter of the specified distribution.
|
|
326
|
+
*/
|
|
327
|
+
pdf(x: number, location: number, scale: number): number;
|
|
328
|
+
/**
|
|
329
|
+
* Estimates location and scale parameter of a logistic distribution for the provided data using maximum likelihood estimation.
|
|
330
|
+
* @param data The array of data to be parameterized
|
|
331
|
+
*/
|
|
332
|
+
MLE(data: number[]): {
|
|
333
|
+
location: number;
|
|
334
|
+
scale: number;
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
LogLogistic: {
|
|
338
|
+
/**
|
|
339
|
+
* Cumulative Distribution Function. Calculates the probability of a random variable with a value less than or equal to x occuring from the loglogistic distribution with the specified location, scale, and optional threshold parameters.
|
|
340
|
+
* @param x The value of x to evaluate the probability of the specified distribution
|
|
341
|
+
* @param location (μ): The location parameter of the specified distribution.
|
|
342
|
+
* @param scale (σ): The scale parameter of the specified distribution.
|
|
343
|
+
* @param threshold [OPTIONAL] (λ): The threshold parameter of the specified distribution.
|
|
344
|
+
*/
|
|
345
|
+
cdf(x: number, location: number, scale: number, threshold?: number): number;
|
|
346
|
+
/**
|
|
347
|
+
* Cumulative Distribution Function. Calculates the probability of a random variable with a value less than or equal to x occuring from the loglogistic distribution with the specified shape, scale, and optional threshold parameters.
|
|
348
|
+
* @param x The value of x to evaluate the probability of the specified distribution
|
|
349
|
+
* @param location (μ): The location parameter of the specified distribution.
|
|
350
|
+
* @param scale (σ): The scale parameter of the specified distribution.
|
|
351
|
+
* @param threshold [OPTIONAL] (λ): The threshold parameter of the specified distribution.
|
|
352
|
+
*/
|
|
353
|
+
pdf(x: number, location: number, scale: number, threshold?: number): number;
|
|
354
|
+
MLE: {
|
|
355
|
+
/**
|
|
356
|
+
* Estimates location and scale parameter of a two-parameter loglogistic distribution for the provided data using maximum likelihood estimation.
|
|
357
|
+
* @customfunction
|
|
358
|
+
* @param data The array of data to be parameterized
|
|
359
|
+
*/
|
|
360
|
+
twoParameter(data: number[]): {
|
|
361
|
+
location: number;
|
|
362
|
+
scale: number;
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
LogNormal: {
|
|
367
|
+
/**
|
|
368
|
+
* Cumulative Distribution Function. Calculates the probability of a random variable with a value less than or equal to x occuring from the lognormal distribution with the specified location, scale, and optional threshold parameters.
|
|
369
|
+
* @param x The value of x to evaluate the probability of the specified distribution
|
|
370
|
+
* @param location (μ): The location parameter of the specified distribution.
|
|
371
|
+
* @param scale (σ): The scale parameter of the specified distribution.
|
|
372
|
+
* @param threshold [OPTIONAL] (λ): The threshold parameter of the specified distribution.
|
|
373
|
+
*/
|
|
374
|
+
cdf(x: number, location: number, scale: number, threshold?: number): number;
|
|
375
|
+
/**
|
|
376
|
+
* Cumulative Distribution Function. Calculates the probability of a random variable with a value less than or equal to x occuring from the lognormal distribution with the specified shape, scale, and optional threshold parameters.
|
|
377
|
+
* @param x The value of x to evaluate the probability of the specified distribution
|
|
378
|
+
* @param location (μ): The location parameter of the specified distribution.
|
|
379
|
+
* @param scale (σ): The scale parameter of the specified distribution.
|
|
380
|
+
* @param threshold [OPTIONAL] (λ): The threshold parameter of the specified distribution.
|
|
381
|
+
*/
|
|
382
|
+
pdf(x: number, location: number, scale: number, threshold?: number): number;
|
|
383
|
+
MLE: {
|
|
384
|
+
/**
|
|
385
|
+
* Estimates location and scale parameter of a lognormal distribution for the provided data using maximum likelihood estimation.
|
|
386
|
+
* @customfunction
|
|
387
|
+
* @param data The array of data to be parameterized
|
|
388
|
+
*/
|
|
389
|
+
twoParameter(data: number[]): {
|
|
390
|
+
location: number;
|
|
391
|
+
scale: number;
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
Normal: {
|
|
396
|
+
BoxCox: {
|
|
397
|
+
lambda: {
|
|
398
|
+
/**
|
|
399
|
+
* Estimates Lambda for a standard Box-Cox transformation.
|
|
400
|
+
* @customfunction
|
|
401
|
+
* @param data The array of data to be transformed
|
|
402
|
+
*/
|
|
403
|
+
std(data: number[]): number;
|
|
404
|
+
/**
|
|
405
|
+
* Estimates Lambda for a Box-Cox transformation as performed by Minitab. Minitab uses a variation of the Box-Cox transformation that is still within the same family of power transformations.
|
|
406
|
+
* @customfunction
|
|
407
|
+
* @param data The array of data to be transformed
|
|
408
|
+
*/
|
|
409
|
+
mtb(data: number[]): number;
|
|
410
|
+
};
|
|
411
|
+
transform: {
|
|
412
|
+
/**
|
|
413
|
+
* Transforms the data using the standard Box-Cox transformation algorithm.
|
|
414
|
+
* @customfunction
|
|
415
|
+
* @param data The array of data to be transformed
|
|
416
|
+
* @param lambda The value of lambda used to transform the data.
|
|
417
|
+
*/
|
|
418
|
+
std(data: number[], lambda: number): number[];
|
|
419
|
+
/**
|
|
420
|
+
* Transforms the data using the modified Box-Cox transformation algorithm used by Minitab.
|
|
421
|
+
* @customfunction
|
|
422
|
+
* @param data The array of data to be transformed
|
|
423
|
+
* @param lambda (λ) The value of lambda used to transform the data.
|
|
424
|
+
*/
|
|
425
|
+
mtb(data: number[], lambda: number): number[];
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
/**
|
|
429
|
+
* Cumulative Distribution Function. Calculates the probability of a random variable with a value less than or equal to x occuring from the normal distribution with the specified location and scale parameters.
|
|
430
|
+
* @param x The value of x to evaluate the probability of the specified distribution
|
|
431
|
+
* @param location (μ): The location parameter of the specified distribution. The location parameter of the normal distribution is equivalent to the Mean.
|
|
432
|
+
* @param scale (σ): The scale parameter of the specified distribution. The scale parameter of the normal distribution is equivalent to the Standard Deviation.
|
|
433
|
+
*/
|
|
434
|
+
cdf(x: number, location: number, scale: number): number;
|
|
435
|
+
/**
|
|
436
|
+
* Calculates the inverse normal cumalitive distribution with the specified location and scale parameters.
|
|
437
|
+
* @param x The value of x to evaluate the probability of the specified distribution
|
|
438
|
+
* @param location [OPTIONAL] (μ): The location parameter of the specified distribution. The location parameter of the normal distribution is equivalent to the Mean. DEFAULT: 0
|
|
439
|
+
* @param scale [OPTIONAL] (σ): The scale parameter of the specified distribution. The scale parameter of the normal distribution is equivalent to the Standard Deviation. DEFAULT: 1
|
|
440
|
+
*/
|
|
441
|
+
inv(p: number, location?: number, scale?: number): number;
|
|
442
|
+
/**
|
|
443
|
+
* Estimates location and scale parameters of the provided data.
|
|
444
|
+
* @param data The array of data to be parameterized
|
|
445
|
+
*/
|
|
446
|
+
MLE(data: number[]): {
|
|
447
|
+
location: number;
|
|
448
|
+
scale: number;
|
|
449
|
+
};
|
|
450
|
+
/**
|
|
451
|
+
* Probability Density Function. Calculates the probability of random variable x occuring from the normal distribution with the specified mean and standard deviation.
|
|
452
|
+
* @param x The value of x to evaluate the probability of the specified distribution
|
|
453
|
+
* @param location [OPTIONAL] (μ): The location parameter of the specified distribution. The location parameter of the normal distribution is equivalent to the Mean.
|
|
454
|
+
* @param scale [OPTIONAL] (σ): The scale parameter of the specified distribution. The scale parameter of the normal distribution is equivalent to the Standard Deviation.
|
|
455
|
+
*/
|
|
456
|
+
pdf(x: number, location?: number, scale?: number): number;
|
|
457
|
+
};
|
|
458
|
+
T: {
|
|
459
|
+
/**
|
|
460
|
+
* Cumulative Distribution Function. Calculates the probability of a random variable with a value less than or equal to x occuring from the T distribution with the specified degrees of freedom. (LEFT TAILED T-TEST)
|
|
461
|
+
* @param x The value of x to evaluate the probability of the specified distribution
|
|
462
|
+
* @param df Degrees of Freedom
|
|
463
|
+
*/
|
|
464
|
+
cdf(t: number, df: number): number;
|
|
465
|
+
/**
|
|
466
|
+
* Evaluates the probability of a random variable occuring with a value x or greater from the T-distribution with the specified degrees of freedom. (RIGHT TAILED T-TEST)
|
|
467
|
+
* @param x The value of x to evaluate the probability of the specified distribution
|
|
468
|
+
* @param df Degrees of Freedom
|
|
469
|
+
*/
|
|
470
|
+
RightTail(t: number, df: number): number;
|
|
471
|
+
};
|
|
472
|
+
SmallestExtremeValue: {
|
|
473
|
+
/**
|
|
474
|
+
* Cumulative Distribution Function. Calculates the probability of a random variable with a value less than or equal to x occuring from the smallest extreme value distribution with the specified location and scale parameters.
|
|
475
|
+
* @param x The value of x to evaluate the probability of the specified distribution
|
|
476
|
+
* @param location (μ): The location parameter of the specified distribution.
|
|
477
|
+
* @param scale (σ): The scale parameter of the specified distribution.
|
|
478
|
+
*/
|
|
479
|
+
cdf(x: number, location: number, scale: number): number;
|
|
480
|
+
/**
|
|
481
|
+
* Probability Density Function. Calculates the probability of random variable x occuring from the smallest extreme value distribution with the specified location and scale parameters.
|
|
482
|
+
* @param x The value of x to evaluate the probability of the specified distribution
|
|
483
|
+
* @param location (μ): The location parameter of the specified distribution.
|
|
484
|
+
* @param scale (σ): The scale parameter of the specified distribution.
|
|
485
|
+
*/
|
|
486
|
+
pdf(x: number, location: number, scale: number): number;
|
|
487
|
+
/**
|
|
488
|
+
* Estimates location and scale parameter of a SEV distribution for the provided data using maximum likelihood estimation.
|
|
489
|
+
* @param data The array of data to be parameterized
|
|
490
|
+
*/
|
|
491
|
+
MLE(data: number[]): {
|
|
492
|
+
location: number;
|
|
493
|
+
scale: number;
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
Weibull: {
|
|
497
|
+
/**
|
|
498
|
+
* Cumulative Distribution Function. Calculates the probability of a random variable with a value less than or equal to x occuring from the Weibull distribution with the specified scale, shape and optional threshold parameters.
|
|
499
|
+
* @param x The value of x to evaluate the probability of the specified distribution
|
|
500
|
+
* @param shape (β): The shape parameter of the specified distribution.
|
|
501
|
+
* @param scale (σ): The scale parameter of the specified distribution.
|
|
502
|
+
* @param threshold [OPTIONAL] (λ): The threshold parameter of the specified distribution.
|
|
503
|
+
*/
|
|
504
|
+
cdf(x: number, scale: number, shape: number, threshold?: number): number;
|
|
505
|
+
/**
|
|
506
|
+
* Probability Density Function. Calculates the probability of random variable x occuring from the Weibull distribution with the specified shape, scale, and optional threshold parameters.
|
|
507
|
+
* @param x The value of x to evaluate the probability of the specified distribution
|
|
508
|
+
* @param shape (β): The shape parameter of the specified distribution.
|
|
509
|
+
* @param scale (σ): The scale parameter of the specified distribution.
|
|
510
|
+
* @param threshold [OPTIONAL] (λ): The threshold parameter of the specified distribution.
|
|
511
|
+
*/
|
|
512
|
+
pdf(x: number, scale: number, shape: number, threshold?: number): number;
|
|
513
|
+
MLE: {
|
|
514
|
+
/**
|
|
515
|
+
* Estimates scale and shape parameters of a two parameter Weibull distribution for the provided data using maximum likelihood estimation.
|
|
516
|
+
* @customfunction
|
|
517
|
+
* @param data The array of data to be parameterized
|
|
518
|
+
*/
|
|
519
|
+
twoParameter(data: number[]): {
|
|
520
|
+
scale: number;
|
|
521
|
+
shape: number;
|
|
522
|
+
};
|
|
523
|
+
/**
|
|
524
|
+
* Estimates scale, shape, and threshold parameters of a three-parameter Weibull distribution for the provided data using maximum likelihood estimation.
|
|
525
|
+
* @customfunction
|
|
526
|
+
* @param data The array of data to be parameterized
|
|
527
|
+
*/
|
|
528
|
+
threeParameter(data: number[]): any;
|
|
529
|
+
/**
|
|
530
|
+
* Estimates the threshold parameter of a three-parameter Weibull distribution for the provided data using maximum likelihood estimation.
|
|
531
|
+
* @customfunction
|
|
532
|
+
* @param data The array of data to be parameterized
|
|
533
|
+
*/
|
|
534
|
+
threshold(data: number[]): number;
|
|
535
|
+
};
|
|
536
|
+
/**
|
|
537
|
+
* Estimates scale and shape parameters of a two-parameter Weibull distribution for the provided data using method of moments estimation.
|
|
538
|
+
* @param data The array of data to be parameterized
|
|
539
|
+
*/
|
|
540
|
+
mme(data: number[]): {
|
|
541
|
+
scale: number;
|
|
542
|
+
shape: number;
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
};
|
|
546
|
+
declare const GoodnessOfFit: {
|
|
547
|
+
AndersonDarling: {
|
|
548
|
+
/**
|
|
549
|
+
* Evaluates the Anderson-Darling test statistic of the Anderson-Darling goodness-of-fit test for the specified data and cumulative distribution function.
|
|
550
|
+
* @param data The data to evaluate.
|
|
551
|
+
* @param cdf The cumulative distribution function to evaluate the data against.
|
|
552
|
+
*/
|
|
553
|
+
AD(data: number[], cdf: Function): number;
|
|
554
|
+
/**
|
|
555
|
+
* Evaluates the p-value of the Anderson-Darling goodness of fit test based on the specified Anderson-Darling test statistic and sample size.
|
|
556
|
+
* @param AD The Anderson-Darling Test Statistic derived from performing the Anderson-Darling Goodness of Fit Test
|
|
557
|
+
* @param N The sample size of the data being evaluated.
|
|
558
|
+
*/
|
|
559
|
+
p(AD: number, N: number): any;
|
|
560
|
+
/**
|
|
561
|
+
* Evaluates the Anderson-Darling goodness-of-fit test for the specified data and cumulative distribution function.
|
|
562
|
+
* @param data The data to evaluate.
|
|
563
|
+
* @param cdf The cumulative distribution function to evaluate the data against.
|
|
564
|
+
*/
|
|
565
|
+
Test(data: number[], cdf: Function): {
|
|
566
|
+
AD: number;
|
|
567
|
+
p: any;
|
|
568
|
+
};
|
|
569
|
+
};
|
|
570
|
+
KolmogorovSmirnov: {
|
|
571
|
+
/**
|
|
572
|
+
* Returns the KolmogorovSmirnov Critical Value for goodness of fit testing based on the specified sample size and the specified confidence.
|
|
573
|
+
* @param N The sample size of the data being evaluated.
|
|
574
|
+
* @param alpha The critical p-value: (1 - confidence) / 100
|
|
575
|
+
*/
|
|
576
|
+
criticalValue(N: number, alpha: string): number;
|
|
577
|
+
};
|
|
578
|
+
};
|
|
579
|
+
/**
|
|
580
|
+
* Estimates parameters and performs the Anderson-Darling goodness of fit test of multiple distributions for the data provided.
|
|
581
|
+
* @param data The data to evaluate.
|
|
582
|
+
*/
|
|
583
|
+
declare function IndividualDistributionIdentification(data: number[]): {
|
|
584
|
+
normal: {
|
|
585
|
+
AD: number;
|
|
586
|
+
p: any;
|
|
587
|
+
parameters: {
|
|
588
|
+
location: number;
|
|
589
|
+
scale: number;
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
boxCox: {
|
|
593
|
+
AD: number;
|
|
594
|
+
p: any;
|
|
595
|
+
parameters: {
|
|
596
|
+
lambda: number;
|
|
597
|
+
location: number;
|
|
598
|
+
scale: number;
|
|
599
|
+
};
|
|
600
|
+
};
|
|
601
|
+
exponential: {
|
|
602
|
+
AD: number;
|
|
603
|
+
p: any;
|
|
604
|
+
parameters: {
|
|
605
|
+
scale: number;
|
|
606
|
+
};
|
|
607
|
+
};
|
|
608
|
+
exponential2p: {
|
|
609
|
+
AD: number;
|
|
610
|
+
p: any;
|
|
611
|
+
parameters: {
|
|
612
|
+
scale: number;
|
|
613
|
+
threshold: number;
|
|
614
|
+
};
|
|
615
|
+
};
|
|
616
|
+
LargestExtremeValue: {
|
|
617
|
+
AD: number;
|
|
618
|
+
p: any;
|
|
619
|
+
parameters: {
|
|
620
|
+
location: number;
|
|
621
|
+
scale: number;
|
|
622
|
+
};
|
|
623
|
+
};
|
|
624
|
+
logistic: {
|
|
625
|
+
AD: number;
|
|
626
|
+
p: any;
|
|
627
|
+
parameters: {
|
|
628
|
+
location: number;
|
|
629
|
+
scale: number;
|
|
630
|
+
};
|
|
631
|
+
};
|
|
632
|
+
loglogistic: {
|
|
633
|
+
AD: number;
|
|
634
|
+
p: any;
|
|
635
|
+
parameters: {
|
|
636
|
+
location: number;
|
|
637
|
+
scale: number;
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
lognormal: {
|
|
641
|
+
AD: number;
|
|
642
|
+
p: any;
|
|
643
|
+
parameters: {
|
|
644
|
+
location: number;
|
|
645
|
+
scale: number;
|
|
646
|
+
};
|
|
647
|
+
};
|
|
648
|
+
SmallestExtremeValue: {
|
|
649
|
+
AD: number;
|
|
650
|
+
p: any;
|
|
651
|
+
parameters: {
|
|
652
|
+
location: number;
|
|
653
|
+
scale: number;
|
|
654
|
+
};
|
|
655
|
+
};
|
|
656
|
+
};
|
|
657
|
+
declare const QQPlot: {
|
|
658
|
+
p(data: number[], method?: string): number[][];
|
|
659
|
+
Exponential(p: number): number;
|
|
660
|
+
Gamma(p: number[]): void;
|
|
661
|
+
LargestExtremeValue(p: number): number;
|
|
662
|
+
Logisitic(p: number): number;
|
|
663
|
+
Normal(p: number): number;
|
|
664
|
+
SmallestExtremeValue(p: number): number;
|
|
665
|
+
Weibull(p: number): number;
|
|
666
|
+
};
|
|
667
|
+
/** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
668
|
+
*/
|
|
669
|
+
/**
|
|
670
|
+
* Calculates the average moving range of the array supplied.
|
|
671
|
+
* @customfunction
|
|
672
|
+
* @param data An array of numbers. The numbers can be supplied as number types or strings
|
|
673
|
+
* @param w The number of samples in each group. DEFAULT: 2
|
|
674
|
+
*/
|
|
675
|
+
declare function AverageMovingRange(data: any[], w?: number): number;
|
|
676
|
+
/**
|
|
677
|
+
* Calculates the mean of the array supplied.
|
|
678
|
+
* @customfunction
|
|
679
|
+
* @param data An array of numbers. The numbers can be supplied as number types or strings
|
|
680
|
+
*/
|
|
6
681
|
declare function Mean(data: any[]): number;
|
|
682
|
+
/**
|
|
683
|
+
* Calculates the median of the array supplied.
|
|
684
|
+
* @customfunction
|
|
685
|
+
* @param data An array of numbers. The numbers can be supplied as number types or strings
|
|
686
|
+
*/
|
|
687
|
+
declare function Median(data: any[]): any;
|
|
688
|
+
/**
|
|
689
|
+
* Calculates the average moving range of the array supplied.
|
|
690
|
+
* @customfunction
|
|
691
|
+
* @param data An array of numbers. The numbers can be supplied as number types or strings
|
|
692
|
+
* @param w The number of samples in each group. DEFAULT: 2
|
|
693
|
+
*/
|
|
694
|
+
declare function MovingRange(data: any[], w?: number): number[];
|
|
695
|
+
declare const StDev: {
|
|
696
|
+
/**
|
|
697
|
+
* Calculates the population standard deviation of the array supplied.
|
|
698
|
+
* @customfunction
|
|
699
|
+
* @param data An array of numbers. The numbers can be supplied as number types or strings
|
|
700
|
+
*/
|
|
701
|
+
P(data: any[]): number;
|
|
702
|
+
/**
|
|
703
|
+
* Calculates the sample standard deviation of the array supplied.
|
|
704
|
+
* @customfunction
|
|
705
|
+
* @param data An array of numbers. The numbers can be supplied as number types or strings
|
|
706
|
+
*/
|
|
707
|
+
S(data: any[]): number;
|
|
708
|
+
/**
|
|
709
|
+
* Calculates the Within standard deviation of the array supplied.
|
|
710
|
+
* @customfunction
|
|
711
|
+
* @param data An array of numbers. The numbers can be supplied as number types or strings
|
|
712
|
+
*/
|
|
713
|
+
W(data: number[], w?: number): number;
|
|
714
|
+
};
|
|
715
|
+
/**
|
|
716
|
+
* Calculates the sum of the numbers supplied.
|
|
717
|
+
* @customfunction
|
|
718
|
+
* @param data An array of numbers. The numbers can be supplied as number types or strings
|
|
719
|
+
*/
|
|
720
|
+
declare function Sum(data: any[]): number;
|
|
721
|
+
/**
|
|
722
|
+
* Calculates the mean of the array supplied.
|
|
723
|
+
* @customfunction
|
|
724
|
+
* @param data An array of numbers. The numbers can be supplied as number types or strings
|
|
725
|
+
*/
|
|
726
|
+
declare function Range(data: any[]): number;
|
|
727
|
+
declare const UnbiasingConstant: {
|
|
728
|
+
/**
|
|
729
|
+
* Calculates the unbiasing constant based on the number N provided.
|
|
730
|
+
* @customfunction
|
|
731
|
+
* @param N The number used to calculate the unbiasing constant. Usually the number of samples (N).
|
|
732
|
+
*/
|
|
733
|
+
D2(N: number): any;
|
|
734
|
+
/**
|
|
735
|
+
* Calculates the unbiasing constant based on the number N provided.
|
|
736
|
+
* @customfunction
|
|
737
|
+
* @param N The number used to calculate the unbiasing constant. Usually the number of samples (N).
|
|
738
|
+
*/
|
|
739
|
+
D3(N: number): any;
|
|
740
|
+
/**
|
|
741
|
+
* Calculates the unbiasing constant based on the number N provided.
|
|
742
|
+
* @customfunction
|
|
743
|
+
* @param N The number used to calculate the unbiasing constant. Usually the number of samples (N).
|
|
744
|
+
*/
|
|
745
|
+
D4(N: number): any;
|
|
746
|
+
/**
|
|
747
|
+
* Calculates the unbiasing constant based on the number N provided.
|
|
748
|
+
* @customfunction
|
|
749
|
+
* @param N The number used to calculate the unbiasing constant. Usually the number of samples (N).
|
|
750
|
+
*/
|
|
751
|
+
unbiasingTable: ({
|
|
752
|
+
N: number;
|
|
753
|
+
d2: number;
|
|
754
|
+
d3: number;
|
|
755
|
+
d4: number;
|
|
756
|
+
} | {
|
|
757
|
+
N: number;
|
|
758
|
+
d2: number;
|
|
759
|
+
d3?: undefined;
|
|
760
|
+
d4?: undefined;
|
|
761
|
+
})[];
|
|
762
|
+
};
|
|
763
|
+
/** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
764
|
+
*/
|
|
765
|
+
/**
|
|
766
|
+
* Performs a two-way ANOVA of the provided data with or without interaction.
|
|
767
|
+
* @customfunction
|
|
768
|
+
* @param data The data to evaluate.
|
|
769
|
+
* @param interaction [OPTIONAL] interaction = true: include interaction component; interaction = false || not provided: do not include interaction component.
|
|
770
|
+
*/
|
|
771
|
+
declare function AnovaTableTwoWay(data: GRR_Data, interaction: boolean): any;
|
|
772
|
+
/**
|
|
773
|
+
* Performs a Type 1 Gage analysis using the provided data with the specified tolerance. If a reference value is included it will calculate gage bias.
|
|
774
|
+
* @customfunction
|
|
775
|
+
* @param data The data to evaluate.
|
|
776
|
+
* @param tolerance The total tolerance spread = (USL - LSL)
|
|
777
|
+
* @param referenceValue The value used to evaluate bias. Generally historical mean or mean from other measurement equipment.
|
|
778
|
+
*/
|
|
779
|
+
declare function G1(data: any, tolerance: number, referenceValue: number): {
|
|
780
|
+
Cg: number;
|
|
781
|
+
Cgk: number;
|
|
782
|
+
bias: number;
|
|
783
|
+
t: number;
|
|
784
|
+
p: number;
|
|
785
|
+
};
|
|
786
|
+
/**
|
|
787
|
+
* Evaluates gage reliability based on variance components and specified tolerance
|
|
788
|
+
* @customfunction
|
|
789
|
+
* @param VarianceComponents Variance component results for the data.
|
|
790
|
+
* @param tolerance The total tolerance spread = (USL - LSL)
|
|
791
|
+
*/
|
|
792
|
+
declare function GageEvaluation(VarianceComponents: any, tolerance: any): any;
|
|
793
|
+
/**
|
|
794
|
+
* Performs a GRR analysis using the ANOVA method on the provided data with the specified tolerance.
|
|
795
|
+
* @customfunction
|
|
796
|
+
* @param data The data to evaluate.
|
|
797
|
+
* @param tolerance The total tolerance spread = (USL - LSL)
|
|
798
|
+
*/
|
|
799
|
+
declare function GRR(data: any, tolerance: number): {
|
|
800
|
+
ANOVA: any;
|
|
801
|
+
VarComp: {
|
|
802
|
+
TotalGRR: {
|
|
803
|
+
VarComp: number;
|
|
804
|
+
Contribution: number;
|
|
805
|
+
};
|
|
806
|
+
Repeatability: {
|
|
807
|
+
VarComp: number;
|
|
808
|
+
Contribution: number;
|
|
809
|
+
};
|
|
810
|
+
Reproducibility: {
|
|
811
|
+
VarComp: number;
|
|
812
|
+
Contribution: number;
|
|
813
|
+
};
|
|
814
|
+
Operator: {
|
|
815
|
+
VarComp: number;
|
|
816
|
+
Contribution: number;
|
|
817
|
+
};
|
|
818
|
+
PartToPart: {
|
|
819
|
+
VarComp: number;
|
|
820
|
+
Contribution: number;
|
|
821
|
+
};
|
|
822
|
+
TotalVariation: {
|
|
823
|
+
VarComp: number;
|
|
824
|
+
Contribution: number;
|
|
825
|
+
};
|
|
826
|
+
};
|
|
827
|
+
GageEvaluation: any;
|
|
828
|
+
};
|
|
829
|
+
/**
|
|
830
|
+
* Evaluates variance components from two-way ANOVA results with provided data
|
|
831
|
+
* @customfunction
|
|
832
|
+
* @param ANOVA Two-way ANOVA results for the data.
|
|
833
|
+
* @param data The data to evaluate.
|
|
834
|
+
*/
|
|
835
|
+
declare function VarianceComponents(ANOVA: any, data: GRR_Data): {
|
|
836
|
+
TotalGRR: {
|
|
837
|
+
VarComp: number;
|
|
838
|
+
Contribution: number;
|
|
839
|
+
};
|
|
840
|
+
Repeatability: {
|
|
841
|
+
VarComp: number;
|
|
842
|
+
Contribution: number;
|
|
843
|
+
};
|
|
844
|
+
Reproducibility: {
|
|
845
|
+
VarComp: number;
|
|
846
|
+
Contribution: number;
|
|
847
|
+
};
|
|
848
|
+
Operator: {
|
|
849
|
+
VarComp: number;
|
|
850
|
+
Contribution: number;
|
|
851
|
+
};
|
|
852
|
+
PartToPart: {
|
|
853
|
+
VarComp: number;
|
|
854
|
+
Contribution: number;
|
|
855
|
+
};
|
|
856
|
+
TotalVariation: {
|
|
857
|
+
VarComp: number;
|
|
858
|
+
Contribution: number;
|
|
859
|
+
};
|
|
860
|
+
};
|
|
7
861
|
|
|
8
|
-
export { Mean };
|
|
862
|
+
export { AnovaTableTwoWay, AverageMovingRange, Beta, Capability, Distributions, ERF, FixedPointIteration, G1, GRR, GRR_Data, GRR_Operator, GRR_Replication, GageEvaluation, Gamma, GoodnessOfFit, IndividualDistributionIdentification, Mean, Median, MovingRange, NewtonRaphson, QESpecification, QQPlot, Range, StDev, Sum, UnbiasingConstant, VarianceComponents };
|