Grasshopper

algorithmic modeling for Rhino

how to extract the amount/number of equal values within a list?

 

I hav a list with say 10 different values in it, but each values have duplicates within the list itself, i want to extract the amount/number of duplicates or in another word, i want to know how many duplicates are there for each number. but i seem to have problem with doing so, cant seem to find any solution for it atm.

 

Sorry im quite new to grasshopper.

 

Cheers

 

Views: 3721

Replies to This Discussion

Hey here is a solution,

And than add a listlength component.

 

Best Regards

DeDackel

thanks alot

 

[Member Index] has a total number of items output. so you can use this in conjunction with the [Create Set] component to supply the items to search for.

Hello Danny,

I tried your propose. Didi you meant it like this?

Best Regards

 

DeDackel

Hi DeDackel, I'm on holiday at the moment so I can't play with gh to see whats going on but i thought that the N was the total of occurancesin the order of the S input. may be i was just imagining it.

Hey Danny,

don´t mind! Enjoy your holidays!

Best Regards

DeDackel

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