mirror of
https://github.com/WallabyLester/RBF-aPID-Controller.git
synced 2026-05-09 20:53:57 +08:00
Cleaning up.
This commit is contained in:
@@ -54,7 +54,6 @@ class RBFNetwork:
|
|||||||
Returns
|
Returns
|
||||||
-------
|
-------
|
||||||
Height of Gaussian curve at x.
|
Height of Gaussian curve at x.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
return np.exp(-np.linalg.norm(x - center) ** 2 / (2 * self.sigma ** 2))
|
return np.exp(-np.linalg.norm(x - center) ** 2 / (2 * self.sigma ** 2))
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ class AdaptivePIDNP:
|
|||||||
rbf_network : RBFNetwork object
|
rbf_network : RBFNetwork object
|
||||||
RBF network class instance.
|
RBF network class instance.
|
||||||
|
|
||||||
|
|
||||||
Methods
|
Methods
|
||||||
-------
|
-------
|
||||||
update(target, measured_value, dt):
|
update(target, measured_value, dt):
|
||||||
|
|||||||
+2
-1
@@ -53,4 +53,5 @@ if __name__ == "__main__":
|
|||||||
plt.title("Adaptive RBF Neural PID Controller")
|
plt.title("Adaptive RBF Neural PID Controller")
|
||||||
plt.legend()
|
plt.legend()
|
||||||
plt.grid()
|
plt.grid()
|
||||||
plt.show()
|
plt.show()
|
||||||
|
|
||||||
Reference in New Issue
Block a user