Files
miSim/@sigmoidSensor/tiltMembership.m
2026-01-28 15:42:52 -08:00

10 lines
333 B
Matlab

function x = tiltMembership(obj, t)
arguments (Input)
obj (1, 1) {mustBeA(obj, "sigmoidSensor")};
t (:, 1) double; % degrees
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