add line function and its inverse
This commit is contained in:
parent
268bedb2f9
commit
5382ed2d4f
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user