data stream variation amount

    Jan 20 2013 | 11:50 am
    I need to have the numerical amount of the variation in a numerical data stream,
    i have the left hand movment data coming from kinect and i want to use the velocity of movement for setting the volume of a sfplay.
    so the faster i move the louder the volume
    i've try to see in the old posts but i can't find..
    is there any way?
    i hope the question is clear, my english in not so good .
    many thanks

    • Jan 20 2013 | 3:51 pm
      you might want to have a look at and experiment with my [sadam.stat] object (see ), which will give you the mean, standard deviation, minimum-maximum values and the element count of a data stream. However, I'm not 100% sure that it would be a real solution for your problem, which might be better solved with some sort of a 'compute the incoming differences and smooth it out' approach.
      Hope that helps,
    • Jan 20 2013 | 7:35 pm
      many thanks Adam ,I'll try tonight .thanx for your job