diff options
author | Mike Buland <mike@xagasoft.com> | 2012-07-09 13:57:37 -0600 |
---|---|---|
committer | Mike Buland <mike@xagasoft.com> | 2012-07-09 13:57:37 -0600 |
commit | 673252f7eadc3aa0cfae3d826e1c7bbe2400df17 (patch) | |
tree | fdb3a7f602ca9d91794f35e880017756d8487fa9 /src/slopestd.h | |
parent | 87dc10690035b02485067f2b0b77bcb0459da42b (diff) | |
download | libneural-673252f7eadc3aa0cfae3d826e1c7bbe2400df17.tar.gz libneural-673252f7eadc3aa0cfae3d826e1c7bbe2400df17.tar.bz2 libneural-673252f7eadc3aa0cfae3d826e1c7bbe2400df17.tar.xz libneural-673252f7eadc3aa0cfae3d826e1c7bbe2400df17.zip |
It generates pngs just like the java version.
Maybe even prettier.
Diffstat (limited to '')
-rw-r--r-- | src/slopestd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slopestd.h b/src/slopestd.h index 40ceef2..116ce1c 100644 --- a/src/slopestd.h +++ b/src/slopestd.h | |||
@@ -43,7 +43,7 @@ namespace Neural | |||
43 | 43 | ||
44 | virtual sigtype operator()( sigtype sInput ) | 44 | virtual sigtype operator()( sigtype sInput ) |
45 | { | 45 | { |
46 | return (tpltanh<sigtype>(2.0*sSlope*sInput) + 1.0)/2.0; | 46 | return tpltanh<sigtype>(2.0*sSlope*sInput); |
47 | } | 47 | } |
48 | 48 | ||
49 | private: | 49 | private: |