Subject | Hash | Author | Date (UTC) |
---|---|---|---|
mplot.maxes: add rbf plot | bd5055adced9e0d8887fa213baa0ff9f9e038ba4 | I am | 2022-03-02 02:17:18 |
misc: add small class for rbf surrogate model | f8beecf63302ceae6d3462ed279b796b54149bdf | I am | 2022-03-02 02:16:01 |
testcases: pf_exact fix for suspension 3d case | 0f3318cac398c9195e0b21a6f13edc9475156b0d | I am | 2022-03-02 02:14:55 |
g_models.CosExp2D: add pf_expression() method | 3ebf3098bcff1a73a649059b1539d622d58b7439 | I am | 2022-02-06 19:38:37 |
mplot.mfigs.double_diagram(): do not share x axis. User can set up limits itself after all | e74145928c028479070af2fe766d55f180828cdf | I am | 2022-02-06 05:02:59 |
testcases: add reference solution bounds to the whitebox | 3358b3ff7903417f6484a875abb154d3a7c04a06 | I am | 2022-02-06 05:00:50 |
mplot: we need more rasterization! | 46df5af418dcab84e8e7e7e23724a74e86575806 | I am | 2022-02-05 02:20:22 |
testcases: provide more presice pf for vehicle suspension example | e2c4bd1c7f2278b4d94b6f7515785528267c18bb | I am | 2022-02-05 02:18:45 |
g_models.PassiveSuspensionVehicle: reformulation and clean up | 6e0f9ea7b97f12a2554d895be0b2b8a3f39a536d | I am | 2022-02-04 03:50:03 |
mplot: add beta diagram | 5e346bdd2c5f06a41726e2ff264776dcc60eac19 | I am | 2022-02-01 04:08:34 |
mplot.maxes3d: rasterization of risges is absolutely needed | 87c3235b8313ade07ca5b4d72b1f8fec339d621d | I am | 2022-01-31 03:15:31 |
testcases: add pf_exact for suspension example | 9f903986699b97bfc0eb7c8d4bcad78d3e018450 | I am | 2022-01-30 23:14:42 |
mplot: polish 3d | b78a192b0ce5c4f5f9e3a94e271bcde3f3c03fac | I am | 2022-01-30 23:14:16 |
qt_gui.gl_plot: oprašit gl_plotové prvky | d4336e94b262d11db3b6a110527689a9ab101a60 | Aleksei Gerasimov | 2022-01-30 04:00:40 |
add vehicle suspension problem | 1546923576c59fa15e97c082b4a9c39cdadcf690 | I am | 2022-01-30 10:39:08 |
mplot: add 3D triangulation plot | addec9ba2a5a9cdfbbfea2eaf660847ea814d387 | I am | 2022-01-30 05:15:22 |
mplot: oprašit matplotlibové 3D | b438c6e10bc36b6f70f54611df6c3988a7959275 | I am | 2022-01-30 04:28:27 |
qt_gui.gl_plot: dát dohromady ConvexHull třídu | 19f7fc6ebf130d07897dca3496d78e3208ddfa29 | Aleksei Gerasimov | 2022-01-30 03:03:07 |
qt_gui.gl_plot: Make 3D working at least for basic box | 1d285206abd77b68207fae0a771b3e69b197a5aa | Aleksei Gerasimov | 2022-01-30 01:15:54 |
qt_gui: prepare 3D view startup | 21648380b72f891cd267ff57e2b9bbbb1dc1d13f | I am | 2022-01-30 00:24:06 |
File | Lines added | Lines deleted |
---|---|---|
mplot/maxes.py | 24 | 0 |
File mplot/maxes.py changed (mode: 100644) (index 0147293..7eafd71) | |||
... | ... | from matplotlib import lines as mlines | |
24 | 24 | ||
25 | 25 | # it is mostly for qt_plot, it offers availiable options to user | # it is mostly for qt_plot, it offers availiable options to user |
26 | 26 | __all__ = [ | __all__ = [ |
27 | 'rbf_plot', 'rbf_diagram', | ||
27 | 28 | 'candidates_plot', 'rejection_sampling_plot', | 'candidates_plot', 'rejection_sampling_plot', |
28 | 29 | 'candidates_sampling_plot', | 'candidates_sampling_plot', |
29 | 30 | 'convex_hull_plot', 'tri_plot', 'tri_nodes_plot', | 'convex_hull_plot', 'tri_plot', 'tri_nodes_plot', |
... | ... | __all__ = [ | |
41 | 42 | ] | ] |
42 | 43 | ||
43 | 44 | ||
45 | def rbf_diagram(ax): | ||
46 | from .. import misc as wmisc | ||
47 | rbf_stm = [] | ||
48 | x = list(range(2, ax.sample_box.nsim)) | ||
49 | for i in x: | ||
50 | rbf = wmisc.RBF_surrogate(ax.sample_box[:i]) | ||
51 | rbf_stm.append(rbf.get_pf_estimation(10000000)) | ||
52 | |||
53 | print(repr(np.array(rbf_stm))) | ||
54 | ax.plot(np.array(x), np.array(rbf_stm)) | ||
55 | |||
56 | |||
57 | |||
58 | def rbf_plot(ax): | ||
59 | from .. import misc as wmisc | ||
60 | dx = 0.1 | ||
61 | x = np.arange(-7, 7, dx) | ||
62 | y = np.arange(-7, 7, dx) | ||
63 | X, Y = np.meshgrid(x, y) | ||
64 | cmap = mcolors.ListedColormap(['green', 'red']) | ||
65 | rbf_values = wmisc.RBF_surrogate(ax.sample_box).rbf(X, Y) | ||
66 | ax.pcolor(X, Y, rbf_values<0, cmap=cmap, alpha=0.2 , zorder = -100) | ||
67 | |||
44 | 68 | ||
45 | 69 | def rejection_sampling_plot(ax, linewidths=[0.7, 0.5, 0.4, 0.3, 0.2, 0.1]): | def rejection_sampling_plot(ax, linewidths=[0.7, 0.5, 0.4, 0.3, 0.2, 0.1]): |
46 | 70 | from .. import simplex as six | from .. import simplex as six |