using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using FObjBase;
using FObjBase.Reflect;
namespace FLY.Thick.Base.IService
{
//剔除!!!!!
public interface IRejectService:INotifyPropertyChanged
{
///
/// 使能
///
bool Enable { get; set; }
///
/// 规格范围,Math.Abs(value-Target) > UpperLimitRatio*Target 都要被删除
///
double LimitRangeRatio { get; set; }
///
/// 剔除阈值,低于 ThresholdRatio*Target 都要被删除
///
double ThresholdRatio { get; set; }
///
/// 滤波范围,单位脉冲
///
int SmoothRange { get; set; }
///
/// 当前数据需要剔除,那么它的前后Range2个脉冲的数据都是删除,单位脉冲
///
int RejectRange { get; set; }
///
/// 调试数据更新时间,用于让客户端 决定什么时候 下载调试数据
///
DateTime DebugUpdateTime { get; }
[Call(typeof(RejectDebugData))]
void GetDebugData(AsyncCBHandler asyncDelegate, object asyncContext);
void Apply();
}
public class RejectDebugData
{
public int start_grid;
///
/// 滤波后的数据
///
public double[] filterDatas;
///
/// 剔除后的数据
///
public double[] rejectDatas;
///
/// 上面的数据,都是grid数据,最后需要以脉冲显示在画面上
///
public int posOfGrid;
///
/// 目标值
///
public double target;
}
}