⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 croft_math.java

📁 Java游戏高级编程!!很不错的!!!Java游戏高级编程!!很不错的
💻 JAVA
字号:
     package com.croftsoft.apps.insight;

     public class Croft_Math {
     //////////////////////////////////////////////////////////////////////
     // Croft_Math.java v0.0 (C) Copyright 1996 David Wallace Croft.
     // 1996-08-24
     //////////////////////////////////////////////////////////////////////

     static public double  sigmoid ( double  a ) {
     //////////////////////////////////////////////////////////////////////
     // Also known as the "logistic function".
     //////////////////////////////////////////////////////////////////////
       return 1.0 / ( 1.0 + java.lang.Math.exp ( -a ) );
     }

     static public double  sigmoid_derivative ( double  a ) {
     //////////////////////////////////////////////////////////////////////
     // The derivative with respect to the argument.
     //////////////////////////////////////////////////////////////////////
       double  y = sigmoid ( a );
       return y * ( 1.0 - y );
     }

     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////
     }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -