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

📄 gausscenter.java

📁 This program demonstrates some function approximation capabilities of a Radial Basis Function Networ
💻 JAVA
字号:
// Decompiled by JAD v1.5.4.3. Copyright 1997-98 Pavel Kouznetsov.// JAD Home Page:      http://web.unicom.com.cy/~kpd/jad.html// Decompiler options: packimports(3) // Source File Name:   RBFunction.java// Decompiled by S.Baehni in order to be compliant with Java1.2import java.awt.Color;class GaussCenter{    public GaussCenter(double d, double d1)    {        mu = d;        sigma = d1;    }    public double[] eval(double ad[])    {        double ad1[] = new double[ad.length];        for(int i = 0; i < ad.length; i++)            ad1[i] = eval(ad[i]);        return ad1;    }    public double eval(double d)    {        return Math.exp((-(d - mu) * (d - mu)) / (2D * sigma * sigma));    }    public void plot(DataDisp datadisp, double ad[])    {        double ad1[][] = new double[ad.length][2];        for(int i = 0; i < ad.length; i++)        {            ad1[i][0] = ad[i];            ad1[i][1] = eval(ad[i]);        }        datadisp.drawcurve(ad1, Color.red);    }    public double mu;    public double sigma;}

⌨️ 快捷键说明

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