Ever wanted to use a logistic function but were annoyed that it didn't exactly fit your domain/range? Look no further! These functions fix endpoints to your logistic curves and give consistent curve-forms on any definite domain. Also included are half-logistic functions with the same properties, and analytic derivatives of all up to second order.
Usage example:
x = [x_1, x_2, x_3, ..., x_n];
bendParam = 10;
lo = min(x); %inf of original domain; can be something other than min(x)
hi = max(x);
newlo = 0; %inf of transformed domain
newhi = 5;
xnew = bilogis(x, bendParam, lo, hi, newlo, newhi);
Cite As
Gene Harvey (2026). bilogis (https://github.com/gharveymn/bilogis), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Updates description to include example |
|
