Grasshopper

algorithmic modeling for Rhino

Hello,

I was found function in grasshopper (Blur numbers).

Function works perfect and do what i need, but I need to program same function by my self in VB.

But i don't have any idea how to build the same mathematical function in VB.

Help for this function says:  Blur a list of numbers by averaging neighbours. But when I was try to find any information on the google, I was failed.

Can anyone help me with this?

Thanks for any info.

Views: 865

Replies to This Discussion

Each number in a list has two neighbors (except for the first and last one, which only have one neighbour unless the list is cyclical). You can blur numbers by taking the average of the number itself and its two neighbours. You can also specify custom weighting factors.

For example, {0.25, 0.5, 0.25} places more emphasis on the original number and less on the neighbours. As long as the factors add up to 1 you don't have to divide by the total sum.

..., 4, 7, 7.5, ...

0.25*4 + 0.5*7 + 0.25*7.5 = the blurred number

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service