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

📄 logarithmicplugin.java

📁 一个纯java写的神经网络源代码
💻 JAVA
字号:
package org.joone.util;import org.joone.engine.*;/** * logarithmic transfer (base e) input data * Creation date: (22/03/2004 23.06.00) * @author: yccheok * */public class LogarithmicPlugIn extends ConverterPlugIn {    private static final long serialVersionUID = 4662839350631574552L;        /**     * LogarithmicPlugIn constructor     */    public LogarithmicPlugIn() {        super();    }        /**     * Start the convertion     */    protected boolean convert(int serie) {        int s = getInputVector().size();        double v = 0, result = 0;        Pattern currPE = null;                for(int i=0; i<s; ++i) {            v = getValuePoint(i, serie);            currPE = (Pattern) getInputVector().elementAt(i);                        if (v >= 0)                result = Math.log(1 + v);            else                result = -Math.log(1 - v);                            currPE.setValue(serie, result);        }        return true;    }}

⌨️ 快捷键说明

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