If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
non-linear rescaling of arrays
4 posts
• Page 1 of 1
non-linear rescaling of arrays
Let say that I have array in range (0-1). I'd like to push it through nonlinear rescaling routines. Anyone experimented with it? Trog - I'm looking at your tools, but I see curves only for floats; did you experimented with that for arrays too?
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Feel free to donate. Thank you for your contribution.
- tester
- Posts: 1786
- Joined: Wed Jan 18, 2012 10:52 pm
- Location: Poland, internet
Re: non-linear rescaling of arrays
I'd think you'd just use the loop component to draw each value of the array consecutively and apply math to it.
- Perfect Human Interface
- Posts: 643
- Joined: Sun Mar 10, 2013 7:32 pm
Re: non-linear rescaling of arrays
I'm not sure how it should work. Array is changing continuously (tick25). But I think I have another idea to test (individual float outputs).
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Feel free to donate. Thank you for your contribution.
- tester
- Posts: 1786
- Joined: Wed Jan 18, 2012 10:52 pm
- Location: Poland, internet
Re: non-linear rescaling of arrays
Yes, Human Interface is right, there's no 'bulk transform' component - you have to treat each element in turn.
Using the regular 'Integer Loop', that means LOTS of triggers, so this is something that Ruby is much better suited for.
Here's a "skeleton" Ruby block that you could use as a template...
Using the regular 'Integer Loop', that means LOTS of triggers, so this is something that Ruby is much better suited for.
Here's a "skeleton" Ruby block that you could use as a template...
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
Don't stagnate, mutate to create!
-
trogluddite - Posts: 1730
- Joined: Fri Oct 22, 2010 12:46 am
- Location: Yorkshire, UK
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 118 guests