private ValueFilter FilterFromeParams(FilterType aType, float[] aParams)
        {
            ValueFilter result;
            if (aType == FilterType.None)
            {
                result = new ValueFilter();
            }
            else if (aType == FilterType.RecursiveFilter)
            {
                if (aParams.Length >= 1)
                {
                    result = new RecursiveValueFilter(aParams[0]);
                }
                else
                {
                    result = new RecursiveValueFilter(0.1);
                }
            }
            else if (aType == FilterType.AverageFilter)
            {
                if (aParams.Length >= 1)
                {
                    result = new AverageValueFilter((int)aParams[0]);
                }
                else
                {
                    result = new AverageValueFilter(3);
                }
            }
            else
            {
                throw new NotImplementedException();
            }

            return result;
        }
 public PointFilter(ValueFilter aXFilter, ValueFilter aYFilter)
 {
     _xFilter = aXFilter;
     _yFilter = aYFilter;
 }