qesuite 1.0.41 → 1.0.42
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 +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +15 -5
- package/dist/index.mjs +15 -5
- package/index.ts +20 -4
- package/package.json +1 -1
- package/versions/1_0_42.md +3 -0
package/dist/index.d.mts
CHANGED
|
@@ -791,8 +791,6 @@ declare function IndividualDistributionPlots(data: number[]): {
|
|
|
791
791
|
boxCox: HTMLCanvasElement;
|
|
792
792
|
exponential: HTMLCanvasElement;
|
|
793
793
|
exponential2p: HTMLCanvasElement;
|
|
794
|
-
gamma: HTMLCanvasElement;
|
|
795
|
-
gamma3p: HTMLCanvasElement;
|
|
796
794
|
largestExtremeValue: HTMLCanvasElement;
|
|
797
795
|
logistic: HTMLCanvasElement;
|
|
798
796
|
loglogistic: HTMLCanvasElement;
|
package/dist/index.d.ts
CHANGED
|
@@ -791,8 +791,6 @@ declare function IndividualDistributionPlots(data: number[]): {
|
|
|
791
791
|
boxCox: HTMLCanvasElement;
|
|
792
792
|
exponential: HTMLCanvasElement;
|
|
793
793
|
exponential2p: HTMLCanvasElement;
|
|
794
|
-
gamma: HTMLCanvasElement;
|
|
795
|
-
gamma3p: HTMLCanvasElement;
|
|
796
794
|
largestExtremeValue: HTMLCanvasElement;
|
|
797
795
|
logistic: HTMLCanvasElement;
|
|
798
796
|
loglogistic: HTMLCanvasElement;
|
package/dist/index.js
CHANGED
|
@@ -1629,11 +1629,20 @@ var Distributions = {
|
|
|
1629
1629
|
}
|
|
1630
1630
|
});
|
|
1631
1631
|
if (selectedValue === 0) {
|
|
1632
|
-
|
|
1632
|
+
console.log("KS too high");
|
|
1633
|
+
let b0 = 0.37872256037043;
|
|
1634
|
+
let b1 = 1.3074818507879;
|
|
1635
|
+
let b2 = 0.08861783849346;
|
|
1636
|
+
let A = -(b1 + N) + Math.sqrt(Math.pow(b1 + N, 2) - 4 * b2 * (b0 - Math.pow(KS, -2)));
|
|
1637
|
+
return -0.37782822932809 + 1.67819837908004 * A - 3.02959249450445 * Math.pow(A, 2) + 2.80015798142101 * Math.pow(A, 3) - 1.39874347510845 * Math.pow(A, 4) + 0.40466213484419 * Math.pow(A, 5) - 0.06353440854207 * Math.pow(A, 6) + 0.00287462087623 * Math.pow(A, 7) + 6965001311e-13 * Math.pow(A, 8) - 11872227037e-14 * Math.pow(A, 9) + 575586834e-14 * Math.pow(A, 10);
|
|
1633
1638
|
}
|
|
1634
|
-
;
|
|
1635
1639
|
if (selectedValue === 5) {
|
|
1636
|
-
|
|
1640
|
+
console.log("KS too LOW");
|
|
1641
|
+
let b0 = 0.37872256037043;
|
|
1642
|
+
let b1 = 1.3074818507879;
|
|
1643
|
+
let b2 = 0.08861783849346;
|
|
1644
|
+
let A = -(b1 + N) + Math.sqrt(Math.pow(b1 + N, 2) - 4 * b2 * (b0 - Math.pow(KS, -2)));
|
|
1645
|
+
return -0.37782822932809 + 1.67819837908004 * A - 3.02959249450445 * Math.pow(A, 2) + 2.80015798142101 * Math.pow(A, 3) - 1.39874347510845 * Math.pow(A, 4) + 0.40466213484419 * Math.pow(A, 5) - 0.06353440854207 * Math.pow(A, 6) + 0.00287462087623 * Math.pow(A, 7) + 6965001311e-13 * Math.pow(A, 8) - 11872227037e-14 * Math.pow(A, 9) + 575586834e-14 * Math.pow(A, 10);
|
|
1637
1646
|
}
|
|
1638
1647
|
;
|
|
1639
1648
|
let p1 = pValues[selectedValue - 1];
|
|
@@ -2279,8 +2288,8 @@ function IndividualDistributionPlots(data) {
|
|
|
2279
2288
|
boxCox: QQPlotChart(boxCoxData, "Normal BoxCox"),
|
|
2280
2289
|
exponential: QQPlotChart(data, "Exponential"),
|
|
2281
2290
|
exponential2p: QQPlotChart(data, "2-Parameter Exponential"),
|
|
2282
|
-
gamma: QQPlotChart(data,
|
|
2283
|
-
gamma3p: QQPlotChart(data,
|
|
2291
|
+
// gamma: QQPlotChart(data, 'Gamma'),
|
|
2292
|
+
// gamma3p: QQPlotChart(data, '3-Parameter Gamma'),
|
|
2284
2293
|
largestExtremeValue: QQPlotChart(data, "Largest Extreme Value"),
|
|
2285
2294
|
logistic: QQPlotChart(data, "Logistic"),
|
|
2286
2295
|
loglogistic: QQPlotChart(data, "2-Parameter LogLogistic"),
|
|
@@ -3584,6 +3593,7 @@ function QQPlotChart(data, distribution = "Normal") {
|
|
|
3584
3593
|
}), "Data", new CanvasDrawSettings(GetThemeColor(0), GetThemeColor(0), 1, 0, 10));
|
|
3585
3594
|
let mean = Mean(data);
|
|
3586
3595
|
let std = StDev.S(data);
|
|
3596
|
+
console.log(dataset);
|
|
3587
3597
|
let chartSettings = new ChartSettings();
|
|
3588
3598
|
let customGridlines = [
|
|
3589
3599
|
new CustomGridline(QQDistributionModification(0.999, distribution), "99.9", void 0, new EngFont("black", void 0, "22px")),
|
package/dist/index.mjs
CHANGED
|
@@ -1542,11 +1542,20 @@ var Distributions = {
|
|
|
1542
1542
|
}
|
|
1543
1543
|
});
|
|
1544
1544
|
if (selectedValue === 0) {
|
|
1545
|
-
|
|
1545
|
+
console.log("KS too high");
|
|
1546
|
+
let b0 = 0.37872256037043;
|
|
1547
|
+
let b1 = 1.3074818507879;
|
|
1548
|
+
let b2 = 0.08861783849346;
|
|
1549
|
+
let A = -(b1 + N) + Math.sqrt(Math.pow(b1 + N, 2) - 4 * b2 * (b0 - Math.pow(KS, -2)));
|
|
1550
|
+
return -0.37782822932809 + 1.67819837908004 * A - 3.02959249450445 * Math.pow(A, 2) + 2.80015798142101 * Math.pow(A, 3) - 1.39874347510845 * Math.pow(A, 4) + 0.40466213484419 * Math.pow(A, 5) - 0.06353440854207 * Math.pow(A, 6) + 0.00287462087623 * Math.pow(A, 7) + 6965001311e-13 * Math.pow(A, 8) - 11872227037e-14 * Math.pow(A, 9) + 575586834e-14 * Math.pow(A, 10);
|
|
1546
1551
|
}
|
|
1547
|
-
;
|
|
1548
1552
|
if (selectedValue === 5) {
|
|
1549
|
-
|
|
1553
|
+
console.log("KS too LOW");
|
|
1554
|
+
let b0 = 0.37872256037043;
|
|
1555
|
+
let b1 = 1.3074818507879;
|
|
1556
|
+
let b2 = 0.08861783849346;
|
|
1557
|
+
let A = -(b1 + N) + Math.sqrt(Math.pow(b1 + N, 2) - 4 * b2 * (b0 - Math.pow(KS, -2)));
|
|
1558
|
+
return -0.37782822932809 + 1.67819837908004 * A - 3.02959249450445 * Math.pow(A, 2) + 2.80015798142101 * Math.pow(A, 3) - 1.39874347510845 * Math.pow(A, 4) + 0.40466213484419 * Math.pow(A, 5) - 0.06353440854207 * Math.pow(A, 6) + 0.00287462087623 * Math.pow(A, 7) + 6965001311e-13 * Math.pow(A, 8) - 11872227037e-14 * Math.pow(A, 9) + 575586834e-14 * Math.pow(A, 10);
|
|
1550
1559
|
}
|
|
1551
1560
|
;
|
|
1552
1561
|
let p1 = pValues[selectedValue - 1];
|
|
@@ -2192,8 +2201,8 @@ function IndividualDistributionPlots(data) {
|
|
|
2192
2201
|
boxCox: QQPlotChart(boxCoxData, "Normal BoxCox"),
|
|
2193
2202
|
exponential: QQPlotChart(data, "Exponential"),
|
|
2194
2203
|
exponential2p: QQPlotChart(data, "2-Parameter Exponential"),
|
|
2195
|
-
gamma: QQPlotChart(data,
|
|
2196
|
-
gamma3p: QQPlotChart(data,
|
|
2204
|
+
// gamma: QQPlotChart(data, 'Gamma'),
|
|
2205
|
+
// gamma3p: QQPlotChart(data, '3-Parameter Gamma'),
|
|
2197
2206
|
largestExtremeValue: QQPlotChart(data, "Largest Extreme Value"),
|
|
2198
2207
|
logistic: QQPlotChart(data, "Logistic"),
|
|
2199
2208
|
loglogistic: QQPlotChart(data, "2-Parameter LogLogistic"),
|
|
@@ -3497,6 +3506,7 @@ function QQPlotChart(data, distribution = "Normal") {
|
|
|
3497
3506
|
}), "Data", new CanvasDrawSettings(GetThemeColor(0), GetThemeColor(0), 1, 0, 10));
|
|
3498
3507
|
let mean = Mean(data);
|
|
3499
3508
|
let std = StDev.S(data);
|
|
3509
|
+
console.log(dataset);
|
|
3500
3510
|
let chartSettings = new ChartSettings();
|
|
3501
3511
|
let customGridlines = [
|
|
3502
3512
|
new CustomGridline(QQDistributionModification(0.999, distribution), "99.9", void 0, new EngFont("black", void 0, "22px")),
|
package/index.ts
CHANGED
|
@@ -1710,8 +1710,23 @@ export const Distributions = {
|
|
|
1710
1710
|
selectedValue += 1
|
|
1711
1711
|
}
|
|
1712
1712
|
})
|
|
1713
|
-
if(selectedValue === 0){
|
|
1714
|
-
|
|
1713
|
+
if(selectedValue === 0){
|
|
1714
|
+
console.log("KS too high")
|
|
1715
|
+
let b0 = 0.37872256037043;
|
|
1716
|
+
let b1 = 1.30748185078790;
|
|
1717
|
+
let b2 = 0.08861783849346;
|
|
1718
|
+
let A = (-(b1+N)+Math.sqrt(Math.pow(b1+N, 2)-4*b2*(b0-Math.pow(KS, -2))))
|
|
1719
|
+
return -.37782822932809+1.67819837908004*A-3.02959249450445*Math.pow(A,2)+2.80015798142101*Math.pow(A,3)-1.39874347510845*Math.pow(A,4)+0.40466213484419*Math.pow(A,5)-0.06353440854207*Math.pow(A,6) +0.00287462087623*Math.pow(A,7)+0.00069650013110*Math.pow(A,8)-0.00011872227037*Math.pow(A,9)+0.00000575586834*Math.pow(A,10)
|
|
1720
|
+
}
|
|
1721
|
+
if(selectedValue === 5){
|
|
1722
|
+
console.log("KS too LOW")
|
|
1723
|
+
let b0 = 0.37872256037043;
|
|
1724
|
+
let b1 = 1.30748185078790;
|
|
1725
|
+
let b2 = 0.08861783849346;
|
|
1726
|
+
let A = (-(b1+N)+Math.sqrt(Math.pow(b1+N, 2)-4*b2*(b0-Math.pow(KS, -2))))
|
|
1727
|
+
return -.37782822932809+1.67819837908004*A-3.02959249450445*Math.pow(A,2)+2.80015798142101*Math.pow(A,3)-1.39874347510845*Math.pow(A,4)+0.40466213484419*Math.pow(A,5)-0.06353440854207*Math.pow(A,6) +0.00287462087623*Math.pow(A,7)+0.00069650013110*Math.pow(A,8)-0.00011872227037*Math.pow(A,9)+0.00000575586834*Math.pow(A,10)
|
|
1728
|
+
|
|
1729
|
+
};
|
|
1715
1730
|
let p1 = pValues[selectedValue-1];
|
|
1716
1731
|
let p2 = pValues[selectedValue];
|
|
1717
1732
|
let KS1 = pSelections[selectedValue-1];
|
|
@@ -2466,8 +2481,8 @@ export function IndividualDistributionPlots(data: number[]){
|
|
|
2466
2481
|
boxCox: QQPlotChart(boxCoxData, "Normal BoxCox"),
|
|
2467
2482
|
exponential: QQPlotChart(data, 'Exponential'),
|
|
2468
2483
|
exponential2p: QQPlotChart(data, '2-Parameter Exponential'),
|
|
2469
|
-
gamma: QQPlotChart(data, 'Gamma'),
|
|
2470
|
-
gamma3p: QQPlotChart(data, '3-Parameter Gamma'),
|
|
2484
|
+
// gamma: QQPlotChart(data, 'Gamma'),
|
|
2485
|
+
// gamma3p: QQPlotChart(data, '3-Parameter Gamma'),
|
|
2471
2486
|
largestExtremeValue: QQPlotChart(data, 'Largest Extreme Value'),
|
|
2472
2487
|
logistic: QQPlotChart(data, 'Logistic'),
|
|
2473
2488
|
loglogistic: QQPlotChart(data, '2-Parameter LogLogistic'),
|
|
@@ -4077,6 +4092,7 @@ export function QQPlotChart(data: number[], distribution: string = 'Normal'){
|
|
|
4077
4092
|
let dataset = new DataSet(qqData[0].map((d, i) => {return new Point(QQDistributionModificationX(d, distribution, data), QQDistributionModification(qqData[1][i], distribution))}), 'Data', new CanvasDrawSettings(GetThemeColor(0), GetThemeColor(0), 1, 0, 10));
|
|
4078
4093
|
let mean = Mean(data);
|
|
4079
4094
|
let std = StDev.S(data);
|
|
4095
|
+
console.log(dataset);
|
|
4080
4096
|
|
|
4081
4097
|
// Create Chart Settings
|
|
4082
4098
|
let chartSettings = new ChartSettings();
|
package/package.json
CHANGED