×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Sigmoid function in vb.net 2005

Sigmoid function in vb.net 2005

Sigmoid function in vb.net 2005

(OP)
Hello everyone, I wonder if the sigmoid function is provided by a dll in vb.net 2005. I want to use it in my code, I would like an example if it is possible for someone to explain me each symbol to understand it better and in case it doesn't exist in a library, so that to understand it better, to create it by my own. I would like to know if this function is provided and the library I can find it, in order to include it in my project and to use it of course.
Any help will be much appreciated. Thank you so much in advanced.

RE: Sigmoid function in vb.net 2005

You can easily create a function in VB to do this:

Private Function sigmoid(ByVal x As Double) As Double
Dim dRetVal As Double
dRetVal = 1/(1 + Math.Exp(-1 * x))
Return dRetVal
End Function

Math.Exp(d As Double) is a VB function returns e raised to the power of d.

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!

RE: Sigmoid function in vb.net 2005

(OP)
Thank you very much, may you explain me, what exactly represents e raised to the power of d? What symbolizes e and d?
Does it calculate an error? I want to use it, in a neural network, in order to serve the purpose of calculating the error, between 2 situations. To be more specific. I have an array that holds positions of another array.
For example:
Positions(i).FromPos1=X
Positions(i).ToPos1=X1
Positions(i).FromPos2=Y
Positions(i).ToPos2=Y2
That represents an element of Vector or Positions, for example vector(j)=Positions(i) where Vector is the array that holds the positions and each Vector(j) is a terminal situation. The initial situation seems like InitialPositions(i).Position which is in the terminal situation Positions(i).FromPos1 or Positions(i).FromPos2, depending the element that is moving from one to the other position. So, I want to calculate the error between these situations so that to produce later the right output of my network. May you explain me about the sigmoid function in general about the symbols e,d and more specific in that case about what they represent? Thank you so much, in advanced.

RE: Sigmoid function in vb.net 2005

Your question is a bit beyond my mathematical abilities. smarty

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!

RE: Sigmoid function in vb.net 2005

(OP)
Doesn't matter, I will find it!!!! Thank you so much.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close