Beispiel #1
0
  public void update() {
    double v = 0;
    double t = 0;
    for (Link l : inputs) {
      t = t + l.getV();
    }
    this.v = (2 / (1 + Math.exp(-2 * t))) - 1;

    for (Reporter r : reporterList) {
      r.addValue(this.v);
    }
  }