Grasshopper

algorithmic modeling for Rhino

How can I find the maximum of a list of number in one component? Keeping in mind the numbers can change so there is no refrence number, just need the maximum number of a list. The Max component doesn't allow this because you must add a second specific number to compare.

Views: 2854

Replies to This Discussion

use the sort list component and extract the last number of the resulting list.
But the list of numbers are not in order, from smallest to bigest, its random. Will the sort list work on that still?
Yes, if you already have them from smallest to largest, you don't need the sort list component. Another method is to use the 'bounds' component under scalar -> interval.
Sorry to ask but I do not understand the Sort List component, I do not understand what input "K" needs?
sort just does what the name says
(k) you can input a list of numbers to sort

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service