am however having a problem with something simple - limiting a set of values between a fixed set that I need help with please?
For example, I'd like to transform this list . . .
(2, 16, 4, 65, 12, 41, 7, 1, 22)
into this one . . .
(5, 16, 5, 25, 12, 25, 7, 5, 22)
i.e. selecting all numbers below 5 and changing them to 5 and selecting all numbers above 25 and changing them to 25.
I know it's possible with a simple If, Not, Then series but I'm rubbish at code!
Also, is there a simple way to apply dimensions to rhino objects from within GH?
Thanks for your help!
Cheers
James…
ke she is (a serie of 12 numbers) but if the input is 11 ( i wanted to delet the middle position of the serie)The question is: HOW can i create a solution with an IF Compotent. Like if is true, go forrward with my list of 12 indexes, but if it`s not clear the middle value, to get 11 values, and go forrward with that one!
thx for any help ( i hope with the attaked image, it´s more clear)…
tName_FinalProject_PartD.pdf
Below is the desk crit list, please sign up for a spot in the comments below:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
See you Monday!…
ve a Vertex [V] connected to four other Vertexs [N1-N4].
Each of the has a Value:
V ... 1
N1 ... 5
N2 ... 3
N3 ... 8
N4 ... 11
The Average Filter would set the Value of [V] to
(1+5+3+8+11)/5 = 5,6
The Median Filter would Sort Values and pick the middle one
1,3, [5], 8, 11
Hope that helped...…
dont get you, i am saying sleect numbers in range 1 to 10, starting from 1 with a step of 2.
1 to 10 by 3 = 1 4 7 10
1 to 10 by 5 = 1 6
1 to 10 by 1 = 1 to 10 = 1 2 3 4 5 6 7 8 9 10
Added by Steve Lewis at 3:15pm on November 11, 2013