This is a file from the Wikimedia Commons

File:Ann dependency (graph).svg

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Original file(SVG file, nominally 178 × 127 pixels, file size: 151 KB)

Summary[edit]

Description
English: Dependency graph for an artificial neural network
Date
Source Vector version of File:Ann dependency graph.png
Author Glosser.ca
SVG development
AsymptoteLogo.svg
This vector image was created with Asymptote by dvisvgm.

CPP code

size(5cm);
import graph;

pair circleEdge(real radius, pair p1, pair p2) {
    return p2 - radius*unit(p2 - p1);
}

void drawArrow(real radius, pair p1, pair p2) {
    pair hshift = (radius, 0), 
    initial = p1 + hshift, final = circleEdge(radius, initial, p2);
    draw(initial--final, Arrow);
}


int dx = 4, dy = 2;
int radius = 1;

pair x0 = (0,0), 
     h1 = (dx, 2*dy), h2 = (dx,0), h3 = (dx, -2*dy),
     g1 = (2*dx, dy), g2 = (2*dx, -dy),
     f0 = (3*dx, 0);

draw(Circle(x0, radius)); label("$x$", x0);

draw(Circle(h1, radius)); label("$h_1$", h1);
draw(Circle(h2, radius)); label("$h_2$", h2);
draw(Circle(h3, radius)); label("$h_3$", h3);

draw(Circle(g1, radius)); label("$g_1$", g1);
draw(Circle(g2, radius)); label("$g_2$", g2);

draw(Circle(f0, radius)); label("$f$", f0);


drawArrow(radius, x0, h1);
drawArrow(radius, x0, h2);
drawArrow(radius, x0, h3);

drawArrow(radius, h1, g1);
drawArrow(radius, h2, g1);
drawArrow(radius, h2, g2);
drawArrow(radius, h3, g2);

drawArrow(radius, g1, f0);
drawArrow(radius, g2, f0);

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
  • share alike – If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current15:40, 1 April 2013Thumbnail for version as of 15:40, 1 April 2013178 × 127 (151 KB)Glosser.caUser created page with UploadWizard
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):

Global file usage

The following other wikis use this file:

Metadata