File:Gabriel graph.svg
מתוך Wikimedia Commons
קפיצה לניווט
קפיצה לחיפוש
גודל התצוגה המקדימה הזאת מסוג PNG של קובץ ה־SVG הזה: 600 × 600 פיקסלים. רזולוציות אחרות: 240 × 240 פיקסלים | 480 × 480 פיקסלים | 768 × 768 פיקסלים | 1,024 × 1,024 פיקסלים | 2,048 × 2,048 פיקסלים.
לקובץ המקורי (קובץ SVG, הגודל המקורי: 600 × 600 פיקסלים, גודל הקובץ: 63 ק"ב)
מידע על הקובץ
נתונים מובְנים
כיתובים
תקציר
[עריכה]תיאורGabriel graph.svg |
English: The Gabriel graph of 100 random points |
תאריך יצירה | |
מקור | נוצר על־ידי מעלה היצירה |
יוצר | David Eppstein |
SVGהתפתחות InfoField | |
קוד מקור InfoField | Python code// This image was created with the following Python source code and then recolored and converted to SVG in Adobe Illustrator.
from pyx import canvas,path,color
from math import *
from random import seed,random
seed(12345)
npoints = 100
radius = 0.05
exclusion = 0.2 # prevent points from being too close
scale = 5
def dist2(p,q):
return (p[0]-q[0])**2 + (p[1]-q[1])**2
points = []
while len(points) < 100:
p = (random()*scale,random()*scale)
if points:
nn = min(dist2(p,q)**0.5 for q in points)
if nn < exclusion:
continue
points.append(p)
def neighbors(p,q):
c = ((p[0]+q[0])/2,(p[1]+q[1])/2)
dd = dist2(p,c)
for r in points:
if r != p and r != q and dist2(r,c) < dd:
return False
return True
c = canvas.canvas()
def edge(p,q):
c.stroke(path.line(p[0],p[1],q[0],q[1]),
[color.rgb.black])
def point(p):
c.fill(path.circle(p[0],p[1],radius),[color.rgb.red])
for p in points:
for q in points:
if p < q and neighbors(p,q):
edge(p,q)
for p in points:
point(p)
c.writePDFfile("Gabriel_graph")
|
רישיון
[עריכה]Public domainPublic domainfalsefalse |
ברצוני, בעלי זכויות היוצרים על יצירה זו, לשחרר יצירה זו לנחלת הכלל. זה תקף בכל העולם. יש מדינות שבהן הדבר אינו אפשרי על פי חוק, אם כך: אני מעניק לכל אחד את הזכות להשתמש בעבודה זו לכל מטרה שהיא, ללא תנאים כלשהם, אלא אם כן תנאים כאלה נדרשים על פי חוק. |
היסטוריית הקובץ
ניתן ללחוץ על תאריך/שעה כדי לראות את הקובץ כפי שנראה באותו זמן.
תאריך/שעה | תמונה ממוזערת | ממדים | משתמש | הערה | |
---|---|---|---|---|---|
נוכחית | 06:03, 7 במאי 2010 | 600 × 600 (63 ק"ב) | David Eppstein (שיחה | תרומות) | {{Information |Description={{en|1=The Gabriel graph of 100 random points}} |Source={{own}} |Author=David Eppstein |Date=2010-05-06 |Permission= |other_versions= }} Category:Computational geometry [[Catego |
אין באפשרותך לדרוס את הקובץ הזה.
שימוש בקובץ
הדף הבא משתמש בקובץ הזה:
שימוש גלובלי בקובץ
אתרי הוויקי השונים הבאים משתמשים בקובץ זה:
- שימוש באתר en.wikipedia.org
- שימוש באתר es.wikipedia.org
- שימוש באתר nl.wikipedia.org
- שימוש באתר ro.wikipedia.org
- שימוש באתר ru.wikipedia.org
- שימוש באתר uk.wikipedia.org