Support

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

For general discussion related FlowStone

non-linear rescaling of arrays

Postby tester » Sun Apr 28, 2013 2:31 pm

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.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: non-linear rescaling of arrays

Postby Perfect Human Interface » Sun Apr 28, 2013 2:48 pm

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

Postby tester » Sun Apr 28, 2013 2:49 pm

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.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: non-linear rescaling of arrays

Postby trogluddite » Sun Apr 28, 2013 2:52 pm

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...
Array Iteration Ruby.fsm
(699 Bytes) Downloaded 925 times
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
User avatar
trogluddite
 
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK


Return to General

Who is online

Users browsing this forum: No registered users and 69 guests