@things-factory/spc 7.0.0-alpha.9 → 7.0.0
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/client/pages/spc-chart-page.ts +28 -14
- package/dist-client/pages/spc-chart-page.d.ts +1 -0
- package/dist-client/pages/spc-chart-page.js +17 -4
- package/dist-client/pages/spc-chart-page.js.map +1 -1
- package/dist-client/route.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/controllers/data-use-case-spc.d.ts +5 -0
- package/dist-server/controllers/data-use-case-spc.js.map +1 -1
- package/dist-server/controllers/index.d.ts +1 -0
- package/dist-server/controllers/rules/cp-cpk.d.ts +1 -0
- package/dist-server/controllers/spc-chart/c.d.ts +2 -0
- package/dist-server/controllers/spc-chart/c.js +1 -2
- package/dist-server/controllers/spc-chart/c.js.map +1 -1
- package/dist-server/controllers/spc-chart/histogram.d.ts +13 -0
- package/dist-server/controllers/spc-chart/histogram.js +1 -2
- package/dist-server/controllers/spc-chart/histogram.js.map +1 -1
- package/dist-server/controllers/spc-chart/i.d.ts +2 -0
- package/dist-server/controllers/spc-chart/i.js +1 -2
- package/dist-server/controllers/spc-chart/i.js.map +1 -1
- package/dist-server/controllers/spc-chart/index.d.ts +140 -0
- package/dist-server/controllers/spc-chart/mr.d.ts +2 -0
- package/dist-server/controllers/spc-chart/mr.js +1 -2
- package/dist-server/controllers/spc-chart/mr.js.map +1 -1
- package/dist-server/controllers/spc-chart/np.d.ts +2 -0
- package/dist-server/controllers/spc-chart/np.js +1 -2
- package/dist-server/controllers/spc-chart/np.js.map +1 -1
- package/dist-server/controllers/spc-chart/p.d.ts +2 -0
- package/dist-server/controllers/spc-chart/p.js +1 -2
- package/dist-server/controllers/spc-chart/p.js.map +1 -1
- package/dist-server/controllers/spc-chart/pareto.d.ts +12 -0
- package/dist-server/controllers/spc-chart/pareto.js +1 -2
- package/dist-server/controllers/spc-chart/pareto.js.map +1 -1
- package/dist-server/controllers/spc-chart/r.d.ts +2 -0
- package/dist-server/controllers/spc-chart/r.js +1 -2
- package/dist-server/controllers/spc-chart/r.js.map +1 -1
- package/dist-server/controllers/spc-chart/u.d.ts +2 -0
- package/dist-server/controllers/spc-chart/u.js +1 -2
- package/dist-server/controllers/spc-chart/u.js.map +1 -1
- package/dist-server/controllers/spc-chart/x-bar-r.d.ts +2 -0
- package/dist-server/controllers/spc-chart/x-bar-r.js +1 -2
- package/dist-server/controllers/spc-chart/x-bar-r.js.map +1 -1
- package/dist-server/controllers/spc-chart/x-bar.d.ts +2 -0
- package/dist-server/controllers/spc-chart/x-bar.js +1 -2
- package/dist-server/controllers/spc-chart/x-bar.js.map +1 -1
- package/dist-server/index.d.ts +1 -0
- package/dist-server/service/index.d.ts +5 -0
- package/dist-server/service/spc-chart/index.d.ts +4 -0
- package/dist-server/service/spc-chart/spc-chart-query.d.ts +4 -0
- package/dist-server/service/spc-chart/spc-chart-query.js +2 -2
- package/dist-server/service/spc-chart/spc-chart-query.js.map +1 -1
- package/dist-server/service/spc-chart/spc-chart-type.d.ts +33 -0
- package/dist-server/service/spc-chart/spc-chart-type.js +7 -8
- package/dist-server/service/spc-chart/spc-chart-type.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/server/service/spc-chart/spc-chart-query.ts +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i.js","sourceRoot":"","sources":["../../../server/controllers/spc-chart/i.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"i.js","sourceRoot":"","sources":["../../../server/controllers/spc-chart/i.ts"],"names":[],"mappings":";;AAEA,sEA4BC;AA5BD,SAAgB,6BAA6B,CAAC,KAAqB;IACjE,eAAe;IACf,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,iCAC9B,IAAI,KACP,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EACjB,EAAE,EAAE,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAC1E,CAAC,CAAA;IAEH,kCAAkC;IAClC,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,CAAA;IAE9E,uBAAuB;IACvB,MAAM,iBAAiB,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;IAE1H,+CAA+C;IAC/C,6DAA6D;IAC7D,MAAM,GAAG,GAAG,EAAE,GAAG,CAAC,GAAG,iBAAiB,CAAA;IACtC,MAAM,GAAG,GAAG,EAAE,GAAG,CAAC,GAAG,iBAAiB,CAAA;IAEtC,OAAO;QACL,SAAS,EAAE,GAAG;QACd,aAAa,EAAE;YACb,EAAE;YACF,GAAG;YACH,GAAG;SACJ;QACD,KAAK;KACN,CAAA;AACH,CAAC","sourcesContent":["import { SPCChartPlot, SPCChartAnalysis } from '../../service/spc-chart/spc-chart-type'\n\nexport function calculateIChartAnalysisResult(plots: SPCChartPlot[]): SPCChartAnalysis {\n // 각 샘플의 평균을 계산\n plots = plots.map((plot, index) => ({\n ...plot,\n i: plot.values[0],\n mr: index == 0 ? 0 : Math.abs(plot.values[0] - plots[index - 1].values[0])\n }))\n\n // 개별 측정값의 평균을 계산하여 중심선(cl)을 구합니다.\n const cl = plots.reduce((acc, plot) => acc + plot.values[0], 0) / plots.length\n\n // 개별 측정값의 표준편차를 계산합니다.\n const standardDeviation = Math.sqrt(plots.reduce((acc, plot) => acc + Math.pow(plot.values[0] - cl, 2), 0) / plots.length)\n\n // 공정 변동을 고려하여 상한 제어선(ucl)과 하한 제어선(lcl)을 계산합니다.\n // 여기서는 3시그마(3 * 표준편차)를 사용합니다. 상황에 따라 적절한 시그마 수준을 조정할 수 있습니다.\n const ucl = cl + 3 * standardDeviation\n const lcl = cl - 3 * standardDeviation\n\n return {\n chartType: 'I',\n controlLimits: {\n cl,\n ucl,\n lcl\n },\n plots\n }\n}\n"]}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
declare const result: {
|
|
2
|
+
dataset: {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
query: {};
|
|
7
|
+
analysisResults: ({
|
|
8
|
+
chartType: string;
|
|
9
|
+
variables: {
|
|
10
|
+
name: string;
|
|
11
|
+
stats: {
|
|
12
|
+
mean: number;
|
|
13
|
+
UCL: number;
|
|
14
|
+
LCL: number;
|
|
15
|
+
CL: number;
|
|
16
|
+
};
|
|
17
|
+
samples: {
|
|
18
|
+
x: string;
|
|
19
|
+
values: number;
|
|
20
|
+
}[];
|
|
21
|
+
}[];
|
|
22
|
+
} | {
|
|
23
|
+
chartType: string;
|
|
24
|
+
variables: {
|
|
25
|
+
name: string;
|
|
26
|
+
stats: {
|
|
27
|
+
range: number;
|
|
28
|
+
UCL: number;
|
|
29
|
+
LCL: number;
|
|
30
|
+
CL: number;
|
|
31
|
+
};
|
|
32
|
+
samples: {
|
|
33
|
+
x: string;
|
|
34
|
+
value: number;
|
|
35
|
+
}[];
|
|
36
|
+
}[];
|
|
37
|
+
} | {
|
|
38
|
+
chartType: string;
|
|
39
|
+
variables: {
|
|
40
|
+
name: string;
|
|
41
|
+
stats: {
|
|
42
|
+
proportion: number;
|
|
43
|
+
UCL: number;
|
|
44
|
+
LCL: number;
|
|
45
|
+
};
|
|
46
|
+
samples: {
|
|
47
|
+
x: string;
|
|
48
|
+
value: number;
|
|
49
|
+
}[];
|
|
50
|
+
}[];
|
|
51
|
+
} | {
|
|
52
|
+
chartType: string;
|
|
53
|
+
variables: {
|
|
54
|
+
name: string;
|
|
55
|
+
stats: {
|
|
56
|
+
nonconforming: number;
|
|
57
|
+
UCL: number;
|
|
58
|
+
LCL: number;
|
|
59
|
+
};
|
|
60
|
+
samples: {
|
|
61
|
+
x: string;
|
|
62
|
+
value: number;
|
|
63
|
+
}[];
|
|
64
|
+
}[];
|
|
65
|
+
} | {
|
|
66
|
+
chartType: string;
|
|
67
|
+
variables: {
|
|
68
|
+
name: string;
|
|
69
|
+
stats: {
|
|
70
|
+
count: number;
|
|
71
|
+
UCL: number;
|
|
72
|
+
LCL: number;
|
|
73
|
+
};
|
|
74
|
+
samples: {
|
|
75
|
+
x: string;
|
|
76
|
+
value: number;
|
|
77
|
+
}[];
|
|
78
|
+
}[];
|
|
79
|
+
} | {
|
|
80
|
+
chartType: string;
|
|
81
|
+
variables: {
|
|
82
|
+
name: string;
|
|
83
|
+
stats: {
|
|
84
|
+
defectsPerUnit: number;
|
|
85
|
+
UCL: number;
|
|
86
|
+
LCL: number;
|
|
87
|
+
};
|
|
88
|
+
samples: {
|
|
89
|
+
x: string;
|
|
90
|
+
value: number;
|
|
91
|
+
}[];
|
|
92
|
+
}[];
|
|
93
|
+
} | {
|
|
94
|
+
chartType: string;
|
|
95
|
+
variables: {
|
|
96
|
+
name: string;
|
|
97
|
+
stats: {
|
|
98
|
+
individualValue: number;
|
|
99
|
+
UCL: number;
|
|
100
|
+
LCL: number;
|
|
101
|
+
};
|
|
102
|
+
samples: {
|
|
103
|
+
x: string;
|
|
104
|
+
value: number;
|
|
105
|
+
}[];
|
|
106
|
+
}[];
|
|
107
|
+
} | {
|
|
108
|
+
chartType: string;
|
|
109
|
+
variables: {
|
|
110
|
+
name: string;
|
|
111
|
+
stats: {
|
|
112
|
+
movingRange: number;
|
|
113
|
+
UCL: number;
|
|
114
|
+
LCL: number;
|
|
115
|
+
};
|
|
116
|
+
samples: {
|
|
117
|
+
x: string;
|
|
118
|
+
value: number;
|
|
119
|
+
}[];
|
|
120
|
+
}[];
|
|
121
|
+
} | {
|
|
122
|
+
chartType: string;
|
|
123
|
+
variables: {
|
|
124
|
+
name: string;
|
|
125
|
+
bins: {
|
|
126
|
+
binRange: string;
|
|
127
|
+
count: number;
|
|
128
|
+
}[];
|
|
129
|
+
}[];
|
|
130
|
+
} | {
|
|
131
|
+
chartType: string;
|
|
132
|
+
variables: {
|
|
133
|
+
name: string;
|
|
134
|
+
categories: {
|
|
135
|
+
category: string;
|
|
136
|
+
count: number;
|
|
137
|
+
}[];
|
|
138
|
+
}[];
|
|
139
|
+
})[];
|
|
140
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.calculateMRChartAnalysisResult =
|
|
3
|
+
exports.calculateMRChartAnalysisResult = calculateMRChartAnalysisResult;
|
|
4
4
|
function calculateMRChartAnalysisResult(plots) {
|
|
5
5
|
// 각 샘플의 평균을 계산
|
|
6
6
|
plots = plots.map((plot, index) => (Object.assign(Object.assign({}, plot), { i: plot.values[0], mr: index == 0 ? 0 : Math.abs(plot.values[0] - plots[index - 1].values[0]) })));
|
|
@@ -21,5 +21,4 @@ function calculateMRChartAnalysisResult(plots) {
|
|
|
21
21
|
plots
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
exports.calculateMRChartAnalysisResult = calculateMRChartAnalysisResult;
|
|
25
24
|
//# sourceMappingURL=mr.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mr.js","sourceRoot":"","sources":["../../../server/controllers/spc-chart/mr.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mr.js","sourceRoot":"","sources":["../../../server/controllers/spc-chart/mr.ts"],"names":[],"mappings":";;AAEA,wEA2BC;AA3BD,SAAgB,8BAA8B,CAAC,KAAqB;IAClE,eAAe;IACf,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,iCAC9B,IAAI,KACP,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EACjB,EAAE,EAAE,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAC1E,CAAC,CAAA;IAEH,iCAAiC;IACjC,MAAM,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;IAEtF,kCAAkC;IAClC,qDAAqD;IACrD,MAAM,GAAG,GAAG,KAAK,GAAG,EAAE,CAAA;IAEtB,iDAAiD;IACjD,MAAM,GAAG,GAAG,CAAC,CAAA,CAAC,SAAS;IAEvB,OAAO;QACL,SAAS,EAAE,IAAI;QACf,aAAa,EAAE;YACb,EAAE;YACF,GAAG;YACH,GAAG;SACJ;QACD,KAAK;KACN,CAAA;AACH,CAAC","sourcesContent":["import { SPCChartPlot, SPCChartAnalysis } from '../../service/spc-chart/spc-chart-type'\n\nexport function calculateMRChartAnalysisResult(plots: SPCChartPlot[]): SPCChartAnalysis {\n // 각 샘플의 평균을 계산\n plots = plots.map((plot, index) => ({\n ...plot,\n i: plot.values[0],\n mr: index == 0 ? 0 : Math.abs(plot.values[0] - plots[index - 1].values[0])\n }))\n\n // 변동 범위의 평균을 계산하여 중심선(CL)을 구합니다.\n const cl = plots.slice(1).reduce((acc, plot) => acc + plot.mr, 0) / (plots.length - 1)\n\n // 공정 변동을 고려하여 상한 제어선(UCL)을 계산합니다.\n // MR 차트에서는 3.267 * MR-Bar을 사용합니다 (2개의 측정값을 사용하는 경우).\n const ucl = 3.267 * cl\n\n // MR 차트에서 하한 제어선(LCL)은 일반적으로 사용되지 않거나 0으로 설정됩니다.\n const lcl = 0 // 하한 제어선\n\n return {\n chartType: 'MR',\n controlLimits: {\n cl,\n ucl,\n lcl\n },\n plots\n }\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.calculateNPChartAnalysisResult =
|
|
3
|
+
exports.calculateNPChartAnalysisResult = calculateNPChartAnalysisResult;
|
|
4
4
|
function calculateNPChartAnalysisResult(plots) {
|
|
5
5
|
// 각 샘플의 평균을 계산
|
|
6
6
|
plots = plots.map(plot => (Object.assign(Object.assign({}, plot), { defects: plot.values.reduce((sum, v) => sum + v, 0), n: plot.values.length })));
|
|
@@ -22,5 +22,4 @@ function calculateNPChartAnalysisResult(plots) {
|
|
|
22
22
|
plots
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
|
-
exports.calculateNPChartAnalysisResult = calculateNPChartAnalysisResult;
|
|
26
25
|
//# sourceMappingURL=np.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"np.js","sourceRoot":"","sources":["../../../server/controllers/spc-chart/np.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"np.js","sourceRoot":"","sources":["../../../server/controllers/spc-chart/np.ts"],"names":[],"mappings":";;AAEA,wEA2BC;AA3BD,SAAgB,8BAA8B,CAAC,KAAqB;IAClE,eAAe;IACf,KAAK,GAAG,KAAK,CAAC,GAAG,CAA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-type'\n\nexport function calculateNPChartAnalysisResult(plots: SPCChartPlot[]): SPCChartAnalysis {\n // 각 샘플의 평균을 계산\n plots = plots.map(plot => ({\n ...plot,\n defects: plot.values.reduce((sum, v) => sum + v, 0),\n n: plot.values.length\n }))\n\n const totalNonConforming = plots.reduce((acc, plot) => acc + plot.defects, 0)\n const totalUnits = plots.reduce((acc, plot) => acc + plot.n, 0)\n const NPBar = totalNonConforming / plots.length // 평균 불량품 수\n\n // p 차트 공식을 사용하여 UCL과 LCL을 계산합니다.\n const pBar = totalNonConforming / totalUnits // 전체 불량품 비율\n const ucl = NPBar + 3 * Math.sqrt(NPBar * (1 - pBar))\n let lcl = NPBar - 3 * Math.sqrt(NPBar * (1 - pBar))\n lcl = lcl < 0 ? 0 : lcl // LCL이 음수인 경우 0으로 설정\n\n return {\n chartType: 'NP',\n controlLimits: {\n ucl,\n lcl,\n cl: NPBar\n },\n plots\n }\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.calculatePChartAnalysisResult =
|
|
3
|
+
exports.calculatePChartAnalysisResult = calculatePChartAnalysisResult;
|
|
4
4
|
function calculatePChartAnalysisResult(plots) {
|
|
5
5
|
// 각 샘플의 평균을 계산
|
|
6
6
|
plots = plots.map(plot => (Object.assign(Object.assign({}, plot), { defects: plot.values.reduce((sum, v) => sum + v, 0), n: plot.values.length })));
|
|
@@ -21,5 +21,4 @@ function calculatePChartAnalysisResult(plots) {
|
|
|
21
21
|
plots
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
exports.calculatePChartAnalysisResult = calculatePChartAnalysisResult;
|
|
25
24
|
//# sourceMappingURL=p.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"p.js","sourceRoot":"","sources":["../../../server/controllers/spc-chart/p.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"p.js","sourceRoot":"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,CAAC,qBAAqB;IAEzJ,OAAO;QACL,SAAS,EAAE,GAAG;QACd,aAAa,EAAE;YACb,GAAG;YACH,GAAG;YACH,EAAE,EAAE,IAAI;SACT;QACD,KAAK;KACN,CAAA;AACH,CAAC","sourcesContent":["import { SPCChartPlot, SPCChartAnalysis } from '../../service/spc-chart/spc-chart-type'\n\nexport function calculatePChartAnalysisResult(plots: SPCChartPlot[]): SPCChartAnalysis {\n // 각 샘플의 평균을 계산\n plots = plots.map(plot => ({\n ...plot,\n defects: plot.values.reduce((sum, v) => sum + v, 0),\n n: plot.values.length\n }))\n\n // 결함 있는 단위의 평균 비율(PBar)을 계산합니다.\n const totalDefectiveUnits = plots.reduce((acc, plot) => acc + plot.defects, 0)\n const totalUnits = plots.reduce((acc, plot) => acc + plot.n, 0)\n const PBar = totalDefectiveUnits / totalUnits\n\n // 샘플 그룹의 크기(n)에 따라 UCL과 LCL을 계산합니다.\n const ucl = PBar + 3 * Math.sqrt((PBar * (1 - PBar)) / totalUnits)\n const lcl = PBar - 3 * Math.sqrt((PBar * (1 - PBar)) / totalUnits) < 0 ? 0 : PBar - 3 * Math.sqrt((PBar * (1 - PBar)) / totalUnits) // LCL이 음수가 되지 않도록 처리\n\n return {\n chartType: 'P',\n controlLimits: {\n ucl,\n lcl,\n cl: PBar\n },\n plots\n }\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface ParetoCategory {
|
|
2
|
+
category: string;
|
|
3
|
+
count: number;
|
|
4
|
+
}
|
|
5
|
+
interface ParetoResult {
|
|
6
|
+
chartType: 'Pareto';
|
|
7
|
+
categories: ParetoCategory[];
|
|
8
|
+
}
|
|
9
|
+
export declare function calculatePareto(data: {
|
|
10
|
+
category: string;
|
|
11
|
+
}[]): ParetoResult;
|
|
12
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.calculatePareto =
|
|
3
|
+
exports.calculatePareto = calculatePareto;
|
|
4
4
|
function calculatePareto(data) {
|
|
5
5
|
// 각 카테고리별 데이터 개수 계산
|
|
6
6
|
const categoryCounts = {};
|
|
@@ -20,5 +20,4 @@ function calculatePareto(data) {
|
|
|
20
20
|
categories
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
exports.calculatePareto = calculatePareto;
|
|
24
23
|
//# sourceMappingURL=pareto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pareto.js","sourceRoot":"","sources":["../../../server/controllers/spc-chart/pareto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pareto.js","sourceRoot":"","sources":["../../../server/controllers/spc-chart/pareto.ts"],"names":[],"mappings":";;AAUA,0CAqBC;AArBD,SAAgB,eAAe,CAAC,IAA4B;IAC1D,oBAAoB;IACpB,MAAM,cAAc,GAAmC,EAAE,CAAA;IACzD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QAClB,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAA;QAC9B,cAAc,CAAC,QAAQ,CAAC,GAAG,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAA;IAChE,CAAC,CAAC,CAAA;IAEF,uBAAuB;IACvB,MAAM,UAAU,GAAqB,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAChF,QAAQ;QACR,KAAK,EAAE,cAAc,CAAC,QAAQ,CAAC;KAChC,CAAC,CAAC,CAAA;IAEH,uBAAuB;IACvB,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAA;IAE5C,OAAO;QACL,SAAS,EAAE,QAAQ;QACnB,UAAU;KACX,CAAA;AACH,CAAC","sourcesContent":["interface ParetoCategory {\n category: string // 카테고리 이름\n count: number // 해당 카테고리의 데이터 개수 또는 중요도\n}\n\ninterface ParetoResult {\n chartType: 'Pareto'\n categories: ParetoCategory[] // Pareto 차트에 표시될 카테고리 및 중요도 정보\n}\n\nexport function calculatePareto(data: { category: string }[]): ParetoResult {\n // 각 카테고리별 데이터 개수 계산\n const categoryCounts: { [category: string]: number } = {}\n data.forEach(item => {\n const category = item.category\n categoryCounts[category] = (categoryCounts[category] || 0) + 1\n })\n\n // 카테고리와 데이터 개수를 배열로 변환\n const categories: ParetoCategory[] = Object.keys(categoryCounts).map(category => ({\n category,\n count: categoryCounts[category]\n }))\n\n // 데이터 개수에 따라 내림차순으로 정렬\n categories.sort((a, b) => b.count - a.count)\n\n return {\n chartType: 'Pareto',\n categories\n }\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.calculateRChartAnalysisResult =
|
|
3
|
+
exports.calculateRChartAnalysisResult = calculateRChartAnalysisResult;
|
|
4
4
|
function calculateRChartAnalysisResult(plots) {
|
|
5
5
|
var _a;
|
|
6
6
|
// 각 샘플 그룹의 범위를 계산합니다.
|
|
@@ -27,5 +27,4 @@ function calculateRChartAnalysisResult(plots) {
|
|
|
27
27
|
plots
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
exports.calculateRChartAnalysisResult = calculateRChartAnalysisResult;
|
|
31
30
|
//# sourceMappingURL=r.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"r.js","sourceRoot":"","sources":["../../../server/controllers/spc-chart/r.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"r.js","sourceRoot":"","sources":["../../../server/controllers/spc-chart/r.ts"],"names":[],"mappings":";;AAEA,sEA+BC;AA/BD,SAAgB,6BAA6B,CAAC,KAAqB;;IACjE,sBAAsB;IACtB,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;QACvB,uCACK,IAAI,KACP,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,IACvD;IACH,CAAC,CAAC,CAAA;IAEF,mCAAmC;IACnC,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,CAAA;IAExE,oCAAoC;IACpC,kEAAkE;IAClE,MAAM,CAAC,GAAG,MAAA,KAAK,CAAC,CAAC,CAAC,0CAAE,MAAM,CAAC,MAAM,CAAA,CAAC,6BAA6B;IAC/D,MAAM,EAAE,GAAG,CAAC,CAAA,CAAC,eAAe;IAC5B,MAAM,EAAE,GAAG,KAAK,CAAA,CAAC,eAAe;IAEhC,mBAAmB;IACnB,MAAM,GAAG,GAAG,EAAE,GAAG,IAAI,CAAA;IACrB,MAAM,GAAG,GAAG,EAAE,GAAG,IAAI,CAAA,CAAC,0BAA0B;IAEhD,OAAO;QACL,SAAS,EAAE,GAAG;QACd,aAAa,EAAE;YACb,GAAG;YACH,GAAG;YACH,EAAE,EAAE,IAAI;SACT;QACD,KAAK;KACN,CAAA;AACH,CAAC","sourcesContent":["import { SPCChartPlot, SPCChartAnalysis } from '../../service/spc-chart/spc-chart-type'\n\nexport function calculateRChartAnalysisResult(plots: SPCChartPlot[]): SPCChartAnalysis {\n // 각 샘플 그룹의 범위를 계산합니다.\n plots = plots.map(plot => {\n return {\n ...plot,\n r: Math.max(...plot.values) - Math.min(...plot.values)\n }\n })\n\n // 모든 샘플 그룹의 범위의 평균값(R-bar)을 계산합니다.\n const RBar = plots.reduce((acc, plot) => acc + plot.r, 0) / plots.length\n\n // 샘플 그룹의 크기(n)에 따라 D3와 D4 값을 설정합니다.\n // 예시에서는 n=5인 경우의 D3와 D4 값을 사용합니다. 실제 구현에서는 샘플 크기에 맞는 값을 사용해야 합니다.\n const n = plots[0]?.values.length // 샘플 크기 추정(모든 그룹이 같은 크기를 가정)\n const D3 = 0 // n=5에 대한 D3 값\n const D4 = 2.114 // n=5에 대한 D4 값\n\n // UCL과 LCL을 계산합니다.\n const ucl = D4 * RBar\n const lcl = D3 * RBar // D3가 0인 경우, LCL은 0이 됩니다.\n\n return {\n chartType: 'R',\n controlLimits: {\n ucl,\n lcl,\n cl: RBar\n },\n plots\n }\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.calculateUChartAnalysisResult =
|
|
3
|
+
exports.calculateUChartAnalysisResult = calculateUChartAnalysisResult;
|
|
4
4
|
function calculateUChartAnalysisResult(plots) {
|
|
5
5
|
// 각 샘플의 평균을 계산
|
|
6
6
|
plots = plots.map(plot => (Object.assign(Object.assign({}, plot), { defects: plot.values.map(Boolean).length, n: plot.values.length })));
|
|
@@ -23,5 +23,4 @@ function calculateUChartAnalysisResult(plots) {
|
|
|
23
23
|
plots
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
exports.calculateUChartAnalysisResult = calculateUChartAnalysisResult;
|
|
27
26
|
//# sourceMappingURL=u.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"u.js","sourceRoot":"","sources":["../../../server/controllers/spc-chart/u.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"u.js","sourceRoot":"","sources":["../../../server/controllers/spc-chart/u.ts"],"names":[],"mappings":";;AAEA,sEA4BC;AA5BD,SAAgB,6BAA6B,CAAC,KAAqB;IACjE,eAAe;IACf,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,iCACrB,IAAI,KACP,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,MAAM,EACxC,CAAC,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,IACrB,CAAC,CAAA;IAEH,6BAA6B;IAC7B,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAA;IACvE,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IAC/D,MAAM,IAAI,GAAG,YAAY,GAAG,UAAU,CAAA;IAEtC,qDAAqD;IACrD,MAAM,CAAC,GAAG,KAAK,CAAC,MAAM,CAAA,CAAC,WAAW;IAClC,sDAAsD;IACtD,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,CAAA;IACnD,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,CAAA,CAAC,qBAAqB;IAE3H,OAAO;QACL,SAAS,EAAE,GAAG;QACd,aAAa,EAAE;YACb,GAAG;YACH,GAAG;YACH,EAAE,EAAE,IAAI;SACT;QACD,KAAK;KACN,CAAA;AACH,CAAC","sourcesContent":["import { SPCChartPlot, SPCChartAnalysis } from '../../service/spc-chart/spc-chart-type'\n\nexport function calculateUChartAnalysisResult(plots: SPCChartPlot[]): SPCChartAnalysis {\n // 각 샘플의 평균을 계산\n plots = plots.map(plot => ({\n ...plot,\n defects: plot.values.map(Boolean).length,\n n: plot.values.length\n }))\n\n // 단위당 결함 수의 평균(UBar)을 계산합니다.\n const totalDefects = plots.reduce((acc, plot) => acc + plot.defects, 0)\n const totalUnits = plots.reduce((acc, plot) => acc + plot.n, 0)\n const UBar = totalDefects / totalUnits\n\n // 샘플 그룹의 크기(n)에 따라 상수를 결정합니다. 여기서는 일반적인 상수 값을 사용합니다.\n const n = plots.length // 샘플 그룹의 수\n // UCL과 LCL 계산을 위한 상수. 실제 값은 샘플 크기와 분포에 따라 달라질 수 있습니다.\n const ucl = UBar + 3 * Math.sqrt(UBar / totalUnits)\n const lcl = UBar - 3 * Math.sqrt(UBar / totalUnits) < 0 ? 0 : UBar - 3 * Math.sqrt(UBar / totalUnits) // LCL이 음수가 되지 않도록 처리\n\n return {\n chartType: 'U',\n controlLimits: {\n ucl,\n lcl,\n cl: UBar\n },\n plots\n }\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.calculateXBarAnalysisResult =
|
|
3
|
+
exports.calculateXBarAnalysisResult = calculateXBarAnalysisResult;
|
|
4
4
|
function getA2Value(sampleSize) {
|
|
5
5
|
const a2Values = {
|
|
6
6
|
2: 1.88,
|
|
@@ -41,5 +41,4 @@ function calculateXBarAnalysisResult(plots) {
|
|
|
41
41
|
plots
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
exports.calculateXBarAnalysisResult = calculateXBarAnalysisResult;
|
|
45
44
|
//# sourceMappingURL=x-bar-r.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-bar-r.js","sourceRoot":"","sources":["../../../server/controllers/spc-chart/x-bar-r.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"x-bar-r.js","sourceRoot":"","sources":["../../../server/controllers/spc-chart/x-bar-r.ts"],"names":[],"mappings":";;AAeA,kEAqCC;AAlDD,SAAS,UAAU,CAAC,UAAkB;IACpC,MAAM,QAAQ,GAA8B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CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAA;IAE1E,oBAAoB;IACpB,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,MAAM,CAAA;IAElF,MAAM,EAAE,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAA;IAC/B,MAAM,GAAG,GAAG,WAAW,GAAG,EAAE,GAAG,YAAY,CAAA;IAC3C,MAAM,GAAG,GAAG,WAAW,GAAG,EAAE,GAAG,YAAY,CAAA;IAE3C,OAAO;QACL,SAAS,EAAE,MAAM;QACjB,aAAa,EAAE;YACb,GAAG;YACH,GAAG;YACH,EAAE,EAAE,WAAW;SAChB;QACD,KAAK;KACN,CAAA;AACH,CAAC","sourcesContent":["import { SPCChartPlot, SPCChartAnalysis } from '../../service/spc-chart/spc-chart-type'\n\nfunction getA2Value(sampleSize: number): number {\n const a2Values: { [key: number]: number } = {\n 2: 1.88,\n 3: 1.023,\n 4: 0.729,\n 5: 0.577,\n 6: 0.483\n // 다른 샘플 크기에 대한 A2 값 추가...\n }\n\n return a2Values[sampleSize] || 0 // 샘플 크기에 대한 A2 값이 정의되지 않은 경우 0을 반환\n}\n\nexport function calculateXBarAnalysisResult(plots: SPCChartPlot[]): SPCChartAnalysis {\n // 각 샘플의 평균을 계산\n plots = plots.map(plot => ({\n ...plot,\n xbar: plot.values ? plot.values.reduce((sum, val) => sum + val, 0) / plot.values.length : 0,\n r: Math.max(...plot.values) - Math.min(...plot.values)\n }))\n\n const plotSize = plots[0]?.values?.length // 샘플 크기 추정(모든 그룹이 같은 크기를 가정)\n\n // 각 샘플의 범위(R) 계산\n const ranges = plots.map(plot => {\n if (plot.values) {\n return Math.max(...plot.values) - Math.min(...plot.values)\n }\n return 0\n })\n\n // 범위(R)의 평균 계산\n const averageRange = ranges.reduce((sum, r) => sum + r, 0) / ranges.length\n\n // 전체 평균(중심선, CL) 계산\n const overallMean = plots.reduce((sum, plot) => sum + plot.xbar, 0) / plots.length\n\n const A2 = getA2Value(plotSize)\n const ucl = overallMean + A2 * averageRange\n const lcl = overallMean - A2 * averageRange\n\n return {\n chartType: 'Xbar',\n controlLimits: {\n ucl,\n lcl,\n cl: overallMean\n },\n plots\n }\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.calculateXBarAnalysisResult =
|
|
3
|
+
exports.calculateXBarAnalysisResult = calculateXBarAnalysisResult;
|
|
4
4
|
function getA2Value(sampleSize) {
|
|
5
5
|
const a2Values = {
|
|
6
6
|
2: 1.88,
|
|
@@ -41,5 +41,4 @@ function calculateXBarAnalysisResult(plots) {
|
|
|
41
41
|
plots
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
exports.calculateXBarAnalysisResult = calculateXBarAnalysisResult;
|
|
45
44
|
//# sourceMappingURL=x-bar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-bar.js","sourceRoot":"","sources":["../../../server/controllers/spc-chart/x-bar.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"x-bar.js","sourceRoot":"","sources":["../../../server/controllers/spc-chart/x-bar.ts"],"names":[],"mappings":";;AAeA,kEAqCC;AAlDD,SAAS,UAAU,CAAC,UAAkB;IACpC,MAAM,QAAQ,GAA8B;QAC1C,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,KAAK;QACR,CAAC,EAAE,KAAK;QACR,CAAC,EAAE,KAAK;QACR,CAAC,EAAE,KAAK;QACR,0BAA0B;KAC3B,CAAA;IAED,OAAO,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAA,CAAC,mCAAmC;AACtE,CAAC;AAED,SAAgB,2BAA2B,C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AG,KAAK,CAAC,MAAM,CAAA;IAElF,MAAM,EAAE,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAA;IAC/B,MAAM,GAAG,GAAG,WAAW,GAAG,EAAE,GAAG,YAAY,CAAA;IAC3C,MAAM,GAAG,GAAG,WAAW,GAAG,EAAE,GAAG,YAAY,CAAA;IAE3C,OAAO;QACL,SAAS,EAAE,MAAM;QACjB,aAAa,EAAE;YACb,GAAG;YACH,GAAG;YACH,EAAE,EAAE,WAAW;SAChB;QACD,KAAK;KACN,CAAA;AACH,CAAC","sourcesContent":["import { SPCChartPlot, SPCChartAnalysis } from '../../service/spc-chart/spc-chart-type'\n\nfunction getA2Value(sampleSize: number): number {\n const a2Values: { [key: number]: number } = {\n 2: 1.88,\n 3: 1.023,\n 4: 0.729,\n 5: 0.577,\n 6: 0.483\n // 다른 샘플 크기에 대한 A2 값 추가...\n }\n\n return a2Values[sampleSize] || 0 // 샘플 크기에 대한 A2 값이 정의되지 않은 경우 0을 반환\n}\n\nexport function calculateXBarAnalysisResult(plots: SPCChartPlot[]): SPCChartAnalysis {\n // 각 샘플의 평균을 계산\n plots = plots.map(plot => ({\n ...plot,\n xbar: plot.values ? plot.values.reduce((sum, val) => sum + val, 0) / plot.values.length : 0,\n r: Math.max(...plot.values) - Math.min(...plot.values)\n }))\n\n const plotSize = plots[0]?.values?.length // 샘플 크기 추정(모든 그룹이 같은 크기를 가정)\n\n // 각 샘플의 범위(R) 계산\n const ranges = plots.map(plot => {\n if (plot.values) {\n return Math.max(...plot.values) - Math.min(...plot.values)\n }\n return 0\n })\n\n // 범위(R)의 평균 계산\n const averageRange = ranges.reduce((sum, r) => sum + r, 0) / ranges.length\n\n // 전체 평균(중심선, CL) 계산\n const overallMean = plots.reduce((sum, plot) => sum + plot.xbar, 0) / plots.length\n\n const A2 = getA2Value(plotSize)\n const ucl = overallMean + A2 * averageRange\n const lcl = overallMean - A2 * averageRange\n\n return {\n chartType: 'Xbar',\n controlLimits: {\n ucl,\n lcl,\n cl: overallMean\n },\n plots\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './service';
|
|
@@ -80,6 +80,7 @@ let SpcChartQuery = class SpcChartQuery {
|
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
|
+
exports.SpcChartQuery = SpcChartQuery;
|
|
83
84
|
tslib_1.__decorate([
|
|
84
85
|
(0, type_graphql_1.Query)(returns => spc_chart_type_1.SPCChartAnalysisResult, { nullable: true, description: 'To fetch a SpcChart' }),
|
|
85
86
|
tslib_1.__param(0, (0, type_graphql_1.Arg)('dataSetId')),
|
|
@@ -92,8 +93,7 @@ tslib_1.__decorate([
|
|
|
92
93
|
tslib_1.__metadata("design:paramtypes", [String, String, String, String, String, Object]),
|
|
93
94
|
tslib_1.__metadata("design:returntype", Promise)
|
|
94
95
|
], SpcChartQuery.prototype, "spcChart", null);
|
|
95
|
-
SpcChartQuery = tslib_1.__decorate([
|
|
96
|
+
exports.SpcChartQuery = SpcChartQuery = tslib_1.__decorate([
|
|
96
97
|
(0, type_graphql_1.Resolver)(dataset_1.DataSet)
|
|
97
98
|
], SpcChartQuery);
|
|
98
|
-
exports.SpcChartQuery = SpcChartQuery;
|
|
99
99
|
//# sourceMappingURL=spc-chart-query.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spc-chart-query.js","sourceRoot":"","sources":["../../../server/service/spc-chart/spc-chart-query.ts"],"names":[],"mappings":";;;;AAAA,+CAAwD;AACxD,qCAAqC;AAErC,iDAAqD;AAErD,qDAA6D;AAE7D,qDAA2E;AAC3E,6DAA+E;AAC/E,qDAA6E;AAC7E,qDAA6E;AAC7E,uDAA+E;AAC/E,qDAA6E;AAC7E,qDAA6E;AAC7E,qDAA6E;AAC7E,uDAA+E;AAGxE,IAAM,aAAa,GAAnB,MAAM,aAAa;IAElB,AAAN,KAAK,CAAC,QAAQ,CACM,SAAiB,EAClB,QAAgB,EACf,SAAiB,EAClB,Q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,WAAW,EAAE,qBAAqB,EAAE,CAAC;IAE/F,mBAAA,IAAA,kBAAG,EAAC,WAAW,CAAC,CAAA;IAChB,mBAAA,IAAA,kBAAG,EAAC,UAAU,CAAC,CAAA;IACf,mBAAA,IAAA,kBAAG,EAAC,WAAW,CAAC,CAAA;IAChB,mBAAA,IAAA,kBAAG,EAAC,UAAU,CAAC,CAAA;IACf,mBAAA,IAAA,kBAAG,EAAC,QAAQ,CAAC,CAAA;IACb,mBAAA,IAAA,kBAAG,GAAE,CAAA;;;;6CA0EP;wBAlFU,aAAa;IADzB,IAAA,uBAAQ,EAAC,iBAAO,CAAC;GACL,aAAa,CAmFzB","sourcesContent":["import { Resolver, Query, Arg, Ctx } from 'type-graphql'\nimport { Between, In } from 'typeorm'\n\nimport { getRepository } from '@things-factory/shell'\nimport { User } from '@things-factory/auth-base'\nimport { DataSet, DataSample } from '@things-factory/dataset'\n\nimport { SPCChartAnalysis, SPCChartAnalysisResult } from './spc-chart-type'\nimport { calculateXBarAnalysisResult } from '../../controllers/spc-chart/x-bar'\nimport { calculateRChartAnalysisResult } from '../../controllers/spc-chart/r'\nimport { calculateIChartAnalysisResult } from '../../controllers/spc-chart/i'\nimport { calculateMRChartAnalysisResult } from '../../controllers/spc-chart/mr'\nimport { calculateUChartAnalysisResult } from '../../controllers/spc-chart/u'\nimport { calculateCChartAnalysisResult } from '../../controllers/spc-chart/c'\nimport { calculatePChartAnalysisResult } from '../../controllers/spc-chart/p'\nimport { calculateNPChartAnalysisResult } from '../../controllers/spc-chart/np'\n\n@Resolver(DataSet)\nexport class SpcChartQuery {\n @Query(returns => SPCChartAnalysisResult!, { nullable: true, description: 'To fetch a SpcChart' })\n async spcChart(\n @Arg('dataSetId') dataSetId: string,\n @Arg('variable') variable: string,\n @Arg('chartType') chartType: string,\n @Arg('fromDate') fromDate: string,\n @Arg('toDate') toDate: string,\n @Ctx() context: ResolverContext\n ): Promise<SPCChartAnalysisResult> {\n const { domain } = context.state\n\n const dataSet = (await getRepository(DataSet).findOne({\n where: { domain: { id: In([domain.id, domain.parentId].filter(Boolean)) }, id: dataSetId }\n })) as DataSet\n\n if (!dataSet) {\n throw 'no given dataset'\n }\n\n const dataItem = dataSet.dataItems.find(dataItem => dataItem.name == variable)\n\n if (!dataItem) {\n throw 'no given variables in the dataset'\n }\n\n // TODO timezone\n const fromTime = new Date(fromDate) /* default: 30days before */\n const toTime = new Date(toDate) /* default: today */\n\n const dataSamples = (await getRepository(DataSample).find({\n where: {\n dataSet: { id: dataSet.id },\n createdAt: Between(fromTime, toTime)\n }\n })) as DataSample[]\n\n const tag = dataItem.tag\n const samples = dataSamples\n .map(dataSample => {\n const data = dataSample.data[tag]\n\n return {\n x: dataSample.createdAt,\n values: Array.isArray(data) ? data : [data]\n }\n })\n .filter(sample => {\n const { x, values } = sample\n return x && values && values.length > 0 && values.every(v => v ?? false)\n })\n\n const charts = [] as SPCChartAnalysis[]\n\n switch (chartType) {\n case 'Xbar-R':\n charts.push(calculateXBarAnalysisResult(samples as any))\n charts.push(calculateRChartAnalysisResult(samples as any))\n break\n case 'I-MR':\n charts.push(calculateIChartAnalysisResult(samples as any))\n charts.push(calculateMRChartAnalysisResult(samples as any))\n break\n case 'C':\n charts.push(calculateUChartAnalysisResult(samples as any))\n break\n case 'U':\n charts.push(calculateCChartAnalysisResult(samples as any))\n break\n case 'P':\n charts.push(calculatePChartAnalysisResult(samples as any))\n break\n case 'NP':\n charts.push(calculateNPChartAnalysisResult(samples as any))\n break\n }\n\n return {\n dataSet,\n variable,\n charts\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DataSet } from '@things-factory/dataset';
|
|
2
|
+
export declare class SPCChartPlot {
|
|
3
|
+
x: string;
|
|
4
|
+
values?: number[];
|
|
5
|
+
xbar?: number;
|
|
6
|
+
r?: number;
|
|
7
|
+
i?: number;
|
|
8
|
+
mr?: number;
|
|
9
|
+
n?: number;
|
|
10
|
+
defects?: number;
|
|
11
|
+
}
|
|
12
|
+
declare class SPCControlLimits {
|
|
13
|
+
ucl?: number;
|
|
14
|
+
lcl?: number;
|
|
15
|
+
cl?: number;
|
|
16
|
+
}
|
|
17
|
+
declare class SPCSpecLimits {
|
|
18
|
+
target?: number;
|
|
19
|
+
lsl?: number;
|
|
20
|
+
usl?: number;
|
|
21
|
+
}
|
|
22
|
+
export declare class SPCChartAnalysis {
|
|
23
|
+
chartType: string;
|
|
24
|
+
controlLimits?: SPCControlLimits;
|
|
25
|
+
specLimits?: SPCSpecLimits;
|
|
26
|
+
plots?: SPCChartPlot[];
|
|
27
|
+
}
|
|
28
|
+
export declare class SPCChartAnalysisResult {
|
|
29
|
+
dataSet: DataSet;
|
|
30
|
+
variable: string;
|
|
31
|
+
charts: SPCChartAnalysis[];
|
|
32
|
+
}
|
|
33
|
+
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
exports.SPCChartAnalysisResult = exports.SPCChartAnalysis = exports.SPCChartPlot = void 0;
|
|
5
4
|
const tslib_1 = require("tslib");
|
|
@@ -7,6 +6,7 @@ const type_graphql_1 = require("type-graphql");
|
|
|
7
6
|
const dataset_1 = require("@things-factory/dataset");
|
|
8
7
|
let SPCChartPlot = class SPCChartPlot {
|
|
9
8
|
};
|
|
9
|
+
exports.SPCChartPlot = SPCChartPlot;
|
|
10
10
|
tslib_1.__decorate([
|
|
11
11
|
(0, type_graphql_1.Field)(type => type_graphql_1.ID),
|
|
12
12
|
tslib_1.__metadata("design:type", String)
|
|
@@ -39,10 +39,9 @@ tslib_1.__decorate([
|
|
|
39
39
|
(0, type_graphql_1.Field)(type => type_graphql_1.Float, { nullable: true }),
|
|
40
40
|
tslib_1.__metadata("design:type", Number)
|
|
41
41
|
], SPCChartPlot.prototype, "defects", void 0);
|
|
42
|
-
SPCChartPlot = tslib_1.__decorate([
|
|
42
|
+
exports.SPCChartPlot = SPCChartPlot = tslib_1.__decorate([
|
|
43
43
|
(0, type_graphql_1.ObjectType)()
|
|
44
44
|
], SPCChartPlot);
|
|
45
|
-
exports.SPCChartPlot = SPCChartPlot;
|
|
46
45
|
let SPCControlLimits = class SPCControlLimits {
|
|
47
46
|
};
|
|
48
47
|
tslib_1.__decorate([
|
|
@@ -79,6 +78,7 @@ SPCSpecLimits = tslib_1.__decorate([
|
|
|
79
78
|
], SPCSpecLimits);
|
|
80
79
|
let SPCChartAnalysis = class SPCChartAnalysis {
|
|
81
80
|
};
|
|
81
|
+
exports.SPCChartAnalysis = SPCChartAnalysis;
|
|
82
82
|
tslib_1.__decorate([
|
|
83
83
|
(0, type_graphql_1.Field)(),
|
|
84
84
|
tslib_1.__metadata("design:type", String)
|
|
@@ -95,10 +95,9 @@ tslib_1.__decorate([
|
|
|
95
95
|
(0, type_graphql_1.Field)(type => [SPCChartPlot], { nullable: true }),
|
|
96
96
|
tslib_1.__metadata("design:type", Array)
|
|
97
97
|
], SPCChartAnalysis.prototype, "plots", void 0);
|
|
98
|
-
SPCChartAnalysis = tslib_1.__decorate([
|
|
98
|
+
exports.SPCChartAnalysis = SPCChartAnalysis = tslib_1.__decorate([
|
|
99
99
|
(0, type_graphql_1.ObjectType)()
|
|
100
100
|
], SPCChartAnalysis);
|
|
101
|
-
exports.SPCChartAnalysis = SPCChartAnalysis;
|
|
102
101
|
// @ObjectType()
|
|
103
102
|
// class Bin {
|
|
104
103
|
// @Field()
|
|
@@ -115,9 +114,10 @@ exports.SPCChartAnalysis = SPCChartAnalysis;
|
|
|
115
114
|
// }
|
|
116
115
|
let SPCChartAnalysisResult = class SPCChartAnalysisResult {
|
|
117
116
|
};
|
|
117
|
+
exports.SPCChartAnalysisResult = SPCChartAnalysisResult;
|
|
118
118
|
tslib_1.__decorate([
|
|
119
119
|
(0, type_graphql_1.Field)(type => dataset_1.DataSet),
|
|
120
|
-
tslib_1.__metadata("design:type",
|
|
120
|
+
tslib_1.__metadata("design:type", dataset_1.DataSet)
|
|
121
121
|
], SPCChartAnalysisResult.prototype, "dataSet", void 0);
|
|
122
122
|
tslib_1.__decorate([
|
|
123
123
|
(0, type_graphql_1.Field)(),
|
|
@@ -127,8 +127,7 @@ tslib_1.__decorate([
|
|
|
127
127
|
(0, type_graphql_1.Field)(type => [SPCChartAnalysis]),
|
|
128
128
|
tslib_1.__metadata("design:type", Array)
|
|
129
129
|
], SPCChartAnalysisResult.prototype, "charts", void 0);
|
|
130
|
-
SPCChartAnalysisResult = tslib_1.__decorate([
|
|
130
|
+
exports.SPCChartAnalysisResult = SPCChartAnalysisResult = tslib_1.__decorate([
|
|
131
131
|
(0, type_graphql_1.ObjectType)()
|
|
132
132
|
], SPCChartAnalysisResult);
|
|
133
|
-
exports.SPCChartAnalysisResult = SPCChartAnalysisResult;
|
|
134
133
|
//# sourceMappingURL=spc-chart-type.js.map
|