This is the code used to fit the free energy function from transfer measurements as presented in the paper Bistable Organic Electrochemical Transistors: Enthalpy vs. Entropy. An example data set is provided.
@article{bongartz2024bistable,
author = {Bongartz, Lukas M. and Kantelberg, Richard and Meier, Tommy and Hoffmann, Raik and Matthus, Christian and Weissbach, Anton and Cucchi, Matteo and Kleemann, Hans and Leo, Karl},
date = {2024/08/09},
doi = {10.1038/s41467-024-51001-9},
journal = {Nature Communications},
number = {1},
pages = {6819},
title = {Bistable organic electrochemical transistors: enthalpy vs. entropy},
url = {https://doi.org/10.1038/s41467-024-51001-9},
volume = {15},
year = {2024}}