function y = boltzmann( x, k )
% computes the boltzmann function
% x: scalar or vector of x values
% k: slope parameter of boltzman function
% returns y-values of boltzmann function
y = 1./(1+exp(-k*x));
end