gis - Forside
<html>
<head>
<title>Nearest_Neighbortitle>
<style type="text/css">

style>
head>
<body>

<p>This page was automatically generated by NetLogo 5.0beta4.p>

<p>The applet requires Java 5 or higher.
Java must be enabled in your browser settings.
Mac users must have Mac OS X 10.4 or higher.
Windows and Linux users may obtain the latest Java from
<a href="http://java.sun.com/getjava/download.html">Sun's Java sitea>.p>

<p><hr>

<p><font size="-1">In order for this to work, this file, your model file
(Nearest_Neighbor.nlogo), and the file NetLogoLite.jar
must all be in the same directory.  (You can copy NetLogoLite.jar
from the directory where you installed NetLogo.)font>p>

<p><font size="-1">On some systems, you can test the applet locally on your computer
before uploading it to a web server.  It doesn't work on all systems,
though, so if it doesn't work from your hard drive, please try
uploading it to a web server.font>p>

<p><font size="-1">You don't need to include everything in this file in your page.
If you want, you can just take the HTML code beginning with
&lt;applet&gt; and ending with &lt;/applet&gt;, and paste it into any HTML
file you want.  It's even OK to put multiple &lt;applet&gt; tags
on a single page.font>p>
<p><font size="-1">If NetLogoLite.jar and your model are in different
directories, you must modify the archive= and value= lines
in the HTML code to point to their actual locations.
(For example, if you have multiple applets in different
directories on the same web server, you may want to put 
a single copy of NetLogoLite.jar in one central place and
change the archive= lines of all the HTML files to point
to that one central copy.  This will save disk space for
you and download time for your users.)font>p>

<p>
<applet code="org.nlogo.lite.Applet"
        archive="NetLogoLite.jar"
        width="1423" height="565">
  <param name="DefaultModel"
         value="Nearest_Neighbor.nlogo">
  <param name="java_arguments"
         value="-Djnlp.packEnabled=true">
applet>
p>

<p>powered by
<a target="_blank" href="http://ccl.northwestern.edu/netlogo/">NetLogoa>p>

<p>view/download model file:
<a href="Nearest_Neighbor.nlogo">Nearest_Neighbor.nlogoa>p>
<h2>WHAT IS IT?h2><p>(a general understanding of what the model is trying to show or explain)p><h2>HOW IT WORKSh2><p>(what rules the agents use to create the overall behavior of the model)p><h2>HOW TO USE ITh2><p>(how to use the model, including a description of each of the items in the Interface tab)p><h2>THINGS TO NOTICEh2><p>(suggested things for the user to notice while running the model)p><h2>THINGS TO TRYh2><p>(suggested things for the user to try to do (move sliders, switches, etc.) with the model)p><h2>EXTENDING THE MODELh2><p>(suggested things to add or change in the Code tab to make the model more complicated, detailed, accurate, etc.)p><h2>NETLOGO FEATURESh2><p>(interesting or unusual features of NetLogo that the model uses, particularly in the Code tab; or where workarounds were needed for missing features)p><h2>RELATED MODELSh2><p>(models in the NetLogo Models Library and elsewhere which are of related interest)p><h2>CREDITS AND REFERENCESh2><p>(a reference to the model&rsquo;s URL on the web if it has one, as well as any other necessary credits, citations, and links)p>
<h1>PROCEDURESh1>
<pre><font color="#007f69">globalsfont><font color="#000000"> [ Sum_Distance ]
font><font color="#007f69">turtles-ownfont><font color="#000000"> [ my_nn my_value]

font><font color="#007f69">tofont><font color="#000000"> setup
  font><font color="#0000aa">cafont><font color="#000000">
  font><font color="#0000aa">reset-ticksfont><font color="#000000">
  font><font color="#0000aa">crtfont><font color="#000000"> Objects
  font><font color="#0000aa">askfont><font color="#000000"> font><font color="#660096">turtlesfont><font color="#000000"> [
    font><font color="#0000aa">setxyfont><font color="#000000"> font><font color="#660096">random-floatfont><font color="#000000"> font><font color="#660096">max-pxcorfont><font color="#000000"> font><font color="#660096">random-floatfont><font color="#000000"> font><font color="#660096">max-pycorfont><font color="#000000">
    font><font color="#0000aa">setfont><font color="#000000"> font><font color="#660096">colorfont><font color="#000000"> font><font color="#660096">randomfont><font color="#000000"> font><font color="#963700">100font><font color="#000000">
    font><font color="#0000aa">setfont><font color="#000000"> font><font color="#660096">sizefont><font color="#000000"> font><font color="#963700">10font><font color="#000000">
    font><font color="#0000aa">setfont><font color="#000000"> my_value font><font color="#660096">randomfont><font color="#000000"> font><font color="#963700">100font><font color="#000000">
    ]
  voronoi
font><font color="#007f69">endfont><font color="#000000">



font><font color="#007f69">tofont><font color="#000000"> pair
  font><font color="#0000aa">askfont><font color="#000000"> font><font color="#660096">turtlesfont><font color="#000000"> [
    font><font color="#0000aa">create-links-withfont><font color="#000000"> font><font color="#660096">otherfont><font color="#000000"> font><font color="#660096">turtlesfont><font color="#000000">
  ]
  font><font color="#5a5a5a">;;ask links [ set Sum_Distance Sum_Distance + link-length ]font><font color="#000000">
  font><font color="#0000aa">tickfont><font color="#000000">
font><font color="#007f69">endfont><font color="#000000">

font><font color="#007f69">tofont><font color="#000000"> nearest_neighbor
  font><font color="#0000aa">askfont><font color="#000000"> font><font color="#660096">linksfont><font color="#000000"> [font><font color="#0000aa">diefont><font color="#000000">]
  font><font color="#0000aa">setfont><font color="#000000"> sum_Distance font><font color="#963700">0font><font color="#000000">
  font><font color="#0000aa">askfont><font color="#000000"> font><font color="#660096">turtlesfont><font color="#000000"> [
    font><font color="#0000aa">setfont><font color="#000000"> my_nn font><font color="#660096">min-one-offont><font color="#000000"> font><font color="#660096">otherfont><font color="#000000"> font><font color="#660096">turtlesfont><font color="#000000"> [ font><font color="#660096">distancefont><font color="#000000"> font><font color="#660096">myselffont><font color="#000000">]
    font><font color="#0000aa">create-link-withfont><font color="#000000"> my_nn
    font><font color="#0000aa">setfont><font color="#000000"> Sum_Distance Sum_Distance font><font color="#660096">+font><font color="#000000"> font><font color="#660096">distancefont><font color="#000000"> my_nn 
    ]
font><font color="#007f69">endfont><font color="#000000">


font><font color="#007f69">tofont><font color="#000000"> voronoi  
  font><font color="#0000aa">askfont><font color="#000000"> font><font color="#660096">patchesfont><font color="#000000"> [
    font><font color="#0000aa">setfont><font color="#000000"> font><font color="#660096">pcolorfont><font color="#000000"> [font><font color="#660096">colorfont><font color="#000000">] font><font color="#660096">offont><font color="#000000"> font><font color="#660096">min-one-offont><font color="#000000"> font><font color="#660096">turtlesfont><font color="#000000"> [font><font color="#660096">distancefont><font color="#000000"> font><font color="#660096">myselffont><font color="#000000">]
  ]
  font><font color="#0000aa">askfont><font color="#000000"> font><font color="#660096">turtlesfont><font color="#000000"> [ font><font color="#0000aa">setfont><font color="#000000"> font><font color="#660096">colorfont><font color="#000000"> font><font color="#660096">colorfont><font color="#000000"> font><font color="#660096">*font><font color="#000000"> font><font color="#963700">2font><font color="#000000"> ]
font><font color="#007f69">endfont><font color="#000000">

font>
pre>

body>
html>
 
Panel title

© 2017 gis

Antal besøg: 3

Lav en gratis hjemmeside på Freewebsite-service.com

Editing

-0,85503196716309sekunder