Grasshopper

algorithmic modeling for Rhino

Rasmus Bendtsen
  • Lyngby
  • Denmark
Share on Facebook
Share
  • Blog Posts
  • Discussions (3)
  • Events
  • Groups
  • Photos
  • Photo Albums
  • Videos

Rasmus Bendtsen's Discussions

Find first bigger value
10 Replies

I am trying to find the index of the first value in M_Rd which is bigger than the bending moment on the left. Any suggestions on how to solve this?…Continue

Started this discussion. Last reply by Anders Holden Deleuran on Tuesday.

 

Rasmus Bendtsen's Page

Latest Activity

Anders Holden Deleuran replied to Rasmus Bendtsen's discussion Find first bigger value
"Ah yeah, I think I didn't explicitly set type hints, so the data will be passed as a string when coming from a Panel (just right-click the input parameters and set them to float to fix)."
Tuesday
Joseph Oster replied to Rasmus Bendtsen's discussion Find first bigger value
"It looks like you interpreted the problem as I did - find the first value in the sequence that is larger rather than the smallest value that is larger.  I hope the OP (Rasmus Bendtsen) will clarify his intention, and perhaps post his…"
Tuesday
Anders Holden Deleuran replied to Rasmus Bendtsen's discussion Find first bigger value
"Here's a simple solution using GHPython (that might be faster on large data sets, since you can break out of the loop as soon as you get the first value that is is larger than the bending moment):"
Tuesday
Joseph Oster replied to Rasmus Bendtsen's discussion Find first bigger value
"This code depends on the sequence of the 'M_Rd' data, returning the index of first item in the list (in sequence!) that is bigger.  Reverse the list and get a different result:"
Monday
Joseph Oster replied to Rasmus Bendtsen's discussion Find first bigger value
"When you say "the index of the first value in M_Rd which is bigger", I thought you meant index of first item in the list that is bigger?  So for your example, the index would be 1 and the value=70.68? Or did you mean index of smallest…"
Monday
Rasmus Bendtsen replied to Rasmus Bendtsen's discussion Find first bigger value
"Never mind. I solved it. But thanks again! :)"
Monday
Hyungsoo Kim replied to Rasmus Bendtsen's discussion Find first bigger value
"How about this?"
Monday
ng5 Alex replied to Rasmus Bendtsen's discussion Find first bigger value
"Hello, this could be a way too best alex"
Monday
Rasmus Bendtsen replied to Rasmus Bendtsen's discussion Find first bigger value
"Thanks a lot. For some reason the member index does not return an index..."
Monday
Hyungsoo Kim replied to Rasmus Bendtsen's discussion Find first bigger value
"Hi. Check this. Best."
Monday
Rasmus Bendtsen posted a discussion

Find first bigger value

I am trying to find the index of the first value in M_Rd which is bigger than the bending moment on the left. Any suggestions on how to solve this?Thanks,RasmusSee More
Monday

Profile Information

Company, School, or Organization
Technical University of Denmark

Comment Wall

You need to be a member of Grasshopper to add comments!

Join Grasshopper

  • No comments yet!
 
 
 

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2017   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service