of Space, 1984) and specified in (Turner A. , “Depthmap: A Program to Perform Visibility Graph Analysis, 2007), intuitively describe the difficulty of getting to other spaces from a certain space. In other words, the higher the entropy value, the more difficult it is to reach other spaces from that space and vice-versa. We compute the spatial entropy of the node as using the point depth set:
(11)
“The term is the maximum depth from vertex and is the frequency of point depth *d* from the vertex” (ibid). Technically, we compute it using the function below, which itself uses some outputs and by-products from previous calculations:
Algorithm 4: Entropy Computation
Given the graph (adjacency lists), Depths as List of List of integer, DepthMap as Dictionary of integer
Initialize Entropies as List(double)
For node as integer in range [0, |V|)
integer How_Many_of_D=0
double S_node=0
For depth as integer in range [1, Depths[node].Max()]
How_Many_of_D=DepthMap.Branch[(node,depth)].Count
double frequency= How_Many_of_D/|V|
S_node = S_node - frequency * Math.Log(frequency, 2)
Next
Entropies [node] = S_node
Next
…
ram of creating sightline.
In the diagram formula is N=[((R+C)x(D+T))/D] - R where R is the vertical distance of eye above point of focus and D is the horizontal distance from eye to point of focus.
So I have very simple test script.
Call main()
Sub main()
Dim D,R,N
Dim T,C
T=1
C=1
For D=0 To 5 Step 0
D=D+T
For R=0 To 5 Step 0
N=(((R+C)*(D+T))/D)-R
R=R+N
Call Rhino.addpoint(Array(D,R,N))
Next
Next
End Sub
Basically I want to make all variable "D","R","T" and "C" as parametric number slider in GH
and repeat "D=D+T", "R=R+N" and "N=(((R+C)*(D+T))/D)-R" until certain times.
The question is how to make a incremental loop in GH.
If anyone think that there is a better solution to do this please teach me.
Thanks for your time!!
…
2.7.5 (2.7.5.0) on .NET 4.0.30319.42000 (64-bit))version info: sys.version_info(major=2, minor=7, micro=5, releaselevel='final', serial=0)Runtime error (ValueErrorException): time data does not match formatdata=JAN/30/2017, fmt=%m/%d/%Y, to: M'/'d'/'yyyyTraceback: line 8, in scriptds
The bottom one:
Runtime error (ValueErrorException): time data does not match formatdata=JAN/30/2017, fmt=%m/%d/%Y, to: M'/'d'/'yyyyTraceback: line 4, in script
Thanks,
-A.…