add line function and its inverse

This commit is contained in:
a.ott 2020-01-15 14:34:38 +01:00
parent 268bedb2f9
commit 5382ed2d4f

View File

@ -2,6 +2,14 @@
import numpy as np
def line(x, m, c):
return m*x + c
def inverse_line(x, m, c):
return (x-c)/m
def exponential_function(x, a, b, c):
return (a-c)*np.exp(-x/b)+c