Subject | Hash | Author | Date (UTC) |
---|---|---|---|
convex_hull.QHull: normal fix | 083bbdc4cb41fdb3e357b1d0359705a2a65d6d27 | I am | 2023-01-20 19:07:17 |
convex_hull.QHull: implement chi cubature integration | 7537b642967b7dd5d8475c20aff2a930a5bcd3ad | I am | 2023-01-20 15:54:05 |
convex_hull: implement QHullCubature class | 6f1b51ba6fe281f7cae4f44889db96787d916a99 | I am | 2023-01-20 10:46:54 |
convex_hull.QHull: add proof-of-concept get_inside() method | 6013fbac742d6070771d7798c928538ebc54495e | I am | 2023-01-19 10:19:32 |
whitebox: add r exact for common nD boxes | 7c4ab62f069f0efeb48a403dac5d27033003ded2 | I am | 2023-01-17 15:09:08 |
qt_gui: improve GRaph to show r-R bounds | 59fa5bde7be2197b1f739bd1f829f927cef62603 | I am | 2023-01-17 14:26:16 |
dicebox.circumtri: calculate event's radia | c6868cfbde7c8a86b73217da544f60e94a117bd8 | I am | 2023-01-16 06:12:34 |
simplex.Triangulation.get_averaged_mixed_normals: implement deep averaging | 6dfb056e477479331c7a903ea52a98301fca4e71 | I am | 2023-01-15 23:26:43 |
replace flatten() by reshape(-1) everywhere. The former always allocates new array | 97b35c989a5ad8e459bb60133222d50c7f78e1f0 | I am | 2023-01-15 12:04:30 |
qt_gui.qt_gui: explicitly export sample_box to console's namespace | dd2e50245157082ddb645b693a8a8c573215d50c | I am | 2023-01-15 11:42:01 |
replace everywhere np.bool by just bool (it looks like newer numpy dropped it) | ac208f89bbf0ad76d38790686041ea778a9b6376 | I am | 2023-01-15 11:31:56 |
simplex._Triangulation: implement averaged gradients() | f6608597cf490dd6cf1a6af3b7d8e6d0a72732d9 | I am | 2023-01-15 09:37:14 |
add line and two lines problems for sensitivity analysis | 0c620f7960399ed8b34e02d663772d0eb34e66f1 | I am | 2023-01-14 08:30:56 |
simplex.FullCubatureIntegration.get_sensitivities: do not normalize global gradient | c648c484a5599a00236ab70c36cdf407c24f5306 | I am | 2023-01-14 04:51:16 |
simplex: implement sensitivities | 65056319c51fd93deb76ce14e52c08869dfc04a2 | I am | 2023-01-13 11:27:46 |
mplot.maxes: prepare GRaph plot | 68774535915af3deaf6104a0bbe9b3c4d24c0cec | I am | 2023-01-12 02:43:20 |
mplot.mgraph.tri_estimation_plot: use planar vertex estimator | 1d300fa56248be9cdab5a4e5b0d4372f68fd5255 | I am | 2023-01-11 15:48:28 |
mplot.mart: implement lsf_boundary() contouring | 8642d2f0c043f4e71af1cc45b9e25da326afd3ca | I am | 2023-01-11 05:20:00 |
mplot.mart.setup_labels: make labels more adaptive | 60cd0b34a67b38df1c730dddc9e0771139818f33 | I am | 2023-01-11 04:35:47 |
simplex._SamplingTriangulation: self reference fix | 79204ff15cba7c5ca24bb5b48e2073058acf00ae | I am | 2023-01-11 03:21:34 |
File | Lines added | Lines deleted |
---|---|---|
wellmet/convex_hull.py | 9 | 6 |
File wellmet/convex_hull.py changed (mode: 100644) (index 520661e..c3e3427) | |||
... | ... | class QHull: | |
1078 | 1078 | chi_pdf = stats.chi.pdf(r, nvar) | chi_pdf = stats.chi.pdf(r, nvar) |
1079 | 1079 | norm_pdf = np.prod(stats.norm.pdf(x), axis=0) | norm_pdf = np.prod(stats.norm.pdf(x), axis=0) |
1080 | 1080 | ||
1081 | r_vectors = x / r[None, :, :] | ||
1082 | |||
1083 | normals = np.sum(r_vectors * hull.A.T[:, :, None], axis=(0)) | ||
1084 | |||
1081 | 1085 | # cdfs /= r | # cdfs /= r |
1082 | 1086 | # cdfs /= nvar * 2 * np.pi | # cdfs /= nvar * 2 * np.pi |
1083 | 1087 | ||
1084 | 1088 | # n_values x nsimplex x scheme_points | # n_values x nsimplex x scheme_points |
1085 | return cdfs * norm_pdf / chi_pdf | ||
1089 | return cdfs * norm_pdf / chi_pdf * normals | ||
1086 | 1090 | ||
1087 | 1091 | ||
1088 | 1092 | ||
... | ... | class QHull: | |
1099 | 1103 | shell = hull.shell.p_shell | shell = hull.shell.p_shell |
1100 | 1104 | ||
1101 | 1105 | chi_outside = hull.get_chi_outside() | chi_outside = hull.get_chi_outside() |
1106 | orth_outside = hull.get_orth_outside() | ||
1102 | 1107 | ||
1103 | 1108 | r_outside = outer + shell | r_outside = outer + shell |
1104 | if chi_outside > r_outside: | ||
1105 | outside = r_outside | ||
1106 | else: | ||
1107 | outside = chi_outside | ||
1109 | outside = min(r_outside, chi_outside) | ||
1110 | outside = max(outside, orth_outside, outer) | ||
1108 | 1111 | ||
1109 | 1112 | return QHullEstimation( | return QHullEstimation( |
1110 | 1113 | hull.sample.nvar, | hull.sample.nvar, |
... | ... | class QHull: | |
1115 | 1118 | shell, | shell, |
1116 | 1119 | outer, | outer, |
1117 | 1120 | chi_outside, | chi_outside, |
1118 | hull.get_orth_outside(), | ||
1121 | orth_outside, | ||
1119 | 1122 | #'tn_scheme', | #'tn_scheme', |
1120 | 1123 | #'tn_scheme_points', | #'tn_scheme_points', |
1121 | 1124 | 1 - outside, | 1 - outside, |