sábado, 7 de marzo de 2015

SIGNOIDAL DECRECIENTE


from pylab import *
import matplotlib.pyplot as plt
import math




def plot_sigmoidaldecre(lista_de_x,h,b,c):
y = []
for x in lista_de_x:
y.append(-1*(h/(1+math.e**(c*(b-x)))))

figure()
plot(lista_de_x,y,'r')
xlabel('X')
ylabel('Sigmoidal Decreciente')
title('Funcion Sigmoidal Decreciente')
show()




#EL PROGRAMA ARRANCA AQUI!
puntos_en_x = linspace (0,10,100)


h = 1
b = 5
c = 1.5


plot_sigmoidaldecre(puntos_en_x,h,b,c)

No hay comentarios:

Publicar un comentario