Grasshopper

algorithmic modeling for Rhino

hello,
i have the following problem
i get a list of around 2500 numbers from an analysis program that are ranging between 0 and some other positive value. this numbers have to be translated into 5 different ranges from 1 to 5. the values will be used later to define a patterning system were each number represents a module. i guess i would have to sort the list and divide the highest value by 5 and then define a conditional statement, that assigns a numeric range to the a number
has anybody had a similar issue?
n

Views: 362

Replies to This Discussion

hi,
i "sorted" it out with a range definition that lets you scale any list to fit into a domain of your choice. see def.
best
n
hi,
i got it solved by shifting the values to fit into a numeric range and then translating numbers to integers.
n
Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service