I would like to make a list of 20 random triangular functions on [0,1] in Python. My triangular function is defined as
f(x) = max{X -|Yx-Z|, 0}, where X = height of function Y = inclination of function Z = position in the coordinate system.
f(x) = max{X -|Yx-Z|, 0}
X
Y
Z
Aucun commentaire:
Enregistrer un commentaire