![]() |
![]() |
#1 |
Ya' like it Retr0?
Join Date: Jul 2005
Location: United Kingdom
Age: 49
Posts: 9,768
|
Discretizing / Normalizing Values in C/C++
heys guys,
I am having trouble relating math to code, I can write it on paper, I can understand it but tring to get it into code is... well escaping my sore little brain... ![]() I just need this in C source and well google is being a biggot!! |
![]() |
![]() |
#2 |
move.w #$4489,$dff07e
Join Date: Sep 2005
Location: Norfolk, UK
Age: 42
Posts: 2,351
|
Code:
#include <math.h> double result = 1 / ( 1 + exp(-1*y) ); ![]() http://www.cppreference.com/stdmath/exp.html explains the exp function - I use this site as an online C/C++ reference. |
![]() |
![]() |
#3 |
Ya' like it Retr0?
Join Date: Jul 2005
Location: United Kingdom
Age: 49
Posts: 9,768
|
Sweeet!!!!!!!!
|
![]() |
![]() |
#4 |
Moderator
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,652
|
hmm why not 1 / ( 1 + exp(-y) ); ?
|
![]() |
![]() |
#5 | |
move.w #$4489,$dff07e
Join Date: Sep 2005
Location: Norfolk, UK
Age: 42
Posts: 2,351
|
Quote:
![]() |
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need SMD resistor values (A1200 1D1) | 8bitbubsy | support.Hardware | 1 | 13 December 2010 08:35 |
The AMIGA Market value and your collection values | Gordon | Amiga scene | 12 | 11 September 2009 17:25 |
Rare games & their values | Tommy K | MarketPlace | 13 | 15 April 2005 16:25 |
|
|