• 大小: 3.22MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-09-10
  • 语言: 其他
  • 标签: 代码本色  英文  

资源简介

代码本色的英文版,程序部分,经典的processing进阶书籍,推荐购买正版书籍

资源截图

代码片段和文件信息

// Daniel Shiffman
// The Nature of Code Fall 2006
// Neural Network

// Class to describe a connection between two neurons

package nn;

public class Connection {

    private Neuron from;     // Connection goes from. . .
    private Neuron to;       // To. . .
    private float weight;   // Weight of the connection. . .

    // Constructor  builds a connection with a random weight
    public Connection(Neuron a_ Neuron b_) {
        from = a_;
        to = b_;
        weight = (float) Math.random()*2-1;
    }
    
    // In case I want to set the weights manually using this for testing
    public Connection(Neuron a_ Neuron b_ float w) {
        from = a_;
        to = b_;
        weight = w;
    }

    public Neuron getFrom() {
        return from;
    }
    
    public Neuron getTo() {
        return to;
    }  
    
    public float getWeight() {
        return weight;
    }

    // Changing the weight of the connection
    public void adjustWeight(float deltaWeight) {
        weight += deltaWeight;
    }


}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-05-23 18:18  The-Nature-of-Code-Examples-master\
     文件           9  2013-05-23 18:18  The-Nature-of-Code-Examples-master\.gitignore
     文件         248  2013-05-23 18:18  The-Nature-of-Code-Examples-master\LICENSE
     目录           0  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\
     目录           0  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\
     目录           0  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\Exercise_10_5_layeredNetworkAnimation\
     文件        1445  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\Exercise_10_5_layeredNetworkAnimation\Connection.pde
     文件        1111  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\Exercise_10_5_layeredNetworkAnimation\Exercise_10_5_layeredNetworkAnimation.pde
     文件        1496  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\Exercise_10_5_layeredNetworkAnimation\Network.pde
     文件        1298  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\Exercise_10_5_layeredNetworkAnimation\Neuron.pde
     目录           0  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\layeredNetworkViz\
     文件         360  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\layeredNetworkViz\Connection.pde
     文件         213  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\layeredNetworkViz\layeredNetworkViz.pde
     文件        1056  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\layeredNetworkViz\Network.pde
     文件         555  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\layeredNetworkViz\Neuron.pde
     目录           0  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\NOC_10_01_SimplePerceptron\
     文件        2235  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\NOC_10_01_SimplePerceptron\NOC_10_01_SimplePerceptron.pde
     文件        1563  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\NOC_10_01_SimplePerceptron\Perceptron.pde
     文件         498  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\NOC_10_01_SimplePerceptron\Trainer.pde
     目录           0  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\NOC_10_02_SeekingNeural\
     文件        1273  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\NOC_10_02_SeekingNeural\NOC_10_02_SeekingNeural.pde
     文件        1142  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\NOC_10_02_SeekingNeural\Perceptron.pde
     文件        2579  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\NOC_10_02_SeekingNeural\Vehicle.pde
     目录           0  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\NOC_10_03_NetworkViz\
     文件         493  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\NOC_10_03_NetworkViz\Connection.pde
     文件         737  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\NOC_10_03_NetworkViz\NOC_10_03_NetworkViz.pde
     文件         747  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\NOC_10_03_NetworkViz\Network.pde
     文件         710  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\NOC_10_03_NetworkViz\Neuron.pde
     目录           0  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\NOC_10_04_NetworkAnimation\
     文件        1445  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\NOC_10_04_NetworkAnimation\Connection.pde
     文件        1085  2013-05-23 18:18  The-Nature-of-Code-Examples-master\Processing\chp10_nn\NOC_10_04_NetworkAnimation\NOC_10_04_NetworkAnimation.pde
............此处省略803个文件信息

评论

共有 条评论