I'm using Microsoft Visual Studio 2010.
The formula is y = 1/(1+exp(-e))
Over the range of values where bih.biWidth is the range to iterate.
Yet when i try implementing in the codes it does not work, why? Can any experts please guide me along, thank you.
for(int y=0; y<bih.biHeight; y++)
{
for(int x=0; x<bih.biWidth; x++)
{
SetPixel(hdc, (double)1/((double)1+exp(double(-x)))*bih.biWidth,
bih.biHeight-x, red);
}
}
The lines start from nearly at the bottom right hand of the image, and ends it at the end with a slight curve on the top right hand of the image. Why is that so?