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 Mar 21.

 

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)."
Mar 21
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…"
Mar 21
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):"
Mar 21
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:"
Mar 20
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…"
Mar 20
Rasmus Bendtsen replied to Rasmus Bendtsen's discussion Find first bigger value
"Never mind. I solved it. But thanks again! :)"
Mar 20
Hyungsoo Kim replied to Rasmus Bendtsen's discussion Find first bigger value
"How about this?"
Mar 20
ng5 Alex replied to Rasmus Bendtsen's discussion Find first bigger value
"Hello, this could be a way too best alex"
Mar 20
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..."
Mar 20
Hyungsoo Kim replied to Rasmus Bendtsen's discussion Find first bigger value
"Hi. Check this. Best."
Mar 20
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
Mar 20

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

© 2017   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service