Logistic regression functions, Version 1, July 2019
logisticregression(x_array,y_array)
Fits a logistic curve to the data given in x_array and y_array.
Returns an array(a,b,c)
, which are the coefficients for the
logistic curve c / (1 + a e^(-b x))
. The values will be accurate to
4 or 5 significant digits, but likely will not exactly match regression preformed
by other technology.
logisticpredict(coefficients, x)
Uses an array of coefficients, returned by logisticregression, to predict the output for the given x value.
logisticsolve(coefficients, y)
Uses an array of coefficients, returned by logisticregression, to solve for an input given a y value.