Added plotting of sigmoid sensor parameters

This commit is contained in:
2025-11-17 11:35:48 -08:00
parent f50e3e2832
commit 35b15db5d3
12 changed files with 99 additions and 4 deletions

View File

@@ -0,0 +1,10 @@
function x = tiltMembership(obj, t)
arguments (Input)
obj (1, 1) {mustBeA(obj, 'sigmoidSensor')};
t (:, 1) double;
end
arguments (Output)
x (:, 1) double;
end
x = (1 ./ (1 + exp(-obj.betaTilt .* (t + obj.alphaTilt)))) - (1 ./ (1 + exp(-obj.betaTilt .* (t - obj.alphaTilt))));
end