User Tools

Site Tools


activating_and_adjusting_delta_limits

Activating And Adjusting Delta Limits

The Delta Filter

A delta filter is designed to filter out dimension return values that fall below the a minimum or above a maximum threshold value.
In the example below a “delta_filter” block has been added to the processing block. To activate the delta filter set the active=“true” and then set the “delta_min” value to any number above zero. The “delta_max” value is then set to “1”. This means that any dimension value between these values will pass through the filter unchanged, any value below “delta_min” will be set to zero and any value above “delta_max” will be capped at the delta_max value. For example:

<Gesture id="1-finger-pivot-delta-filter" type="pivot">
    <match>
        <action>
            <initial>
                <cluster point_number="1"/>
            </initial>
        </action>
    </match>
    <analysis>
        <algorithm class="kinemetric" type="continuous">
            <library module="pivot"/>
            <returns>
                <property id="pivot_dtheta" result="pivot_dtheta"/>
            </returns>
        </algorithm>
    </analysis>    
    <processing>
        <delta_filter>
            <property ref="pivot_dtheta" active="false" delta_min="0.0001" delta_max="1"/>
        </delta_filter>
    </processing>
    <mapping>
        <update dispatch_type="continuous">
            <gesture_event  type="pivot">
                <property ref="pivot_dtheta" target="rotate"/>
            </gesture_event>
        </update>
    </mapping>
</Gesture>
activating_and_adjusting_delta_limits.txt · Last modified: 2015/10/09 18:09 by paul