コード例 #1
0
        public OveruseEstimator(OverUseDetectorOptions overUseDetectorOptions)
        {
            OverUseDetectorOptions = overUseDetectorOptions;
            num_of_deltas_         = 0;
            slope_       = overUseDetectorOptions.initial_slope;
            offset_      = overUseDetectorOptions.initial_offset;
            prev_offset_ = overUseDetectorOptions.initial_offset;

            E_             = new double[2, 2];
            process_noise_ = new double[2];
            avg_noise_     = overUseDetectorOptions.initial_avg_noise;
            var_noise_     = overUseDetectorOptions.initial_var_noise;
            ts_delta_hist_ = new List <double>();
            E_             = overUseDetectorOptions.initial_e;
            process_noise_ = overUseDetectorOptions.initial_process_noise;
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: lvnet31/Kalman-filtering
        static void Main(string[] args)
        {
            OverUseDetectorOptions overUseDetectorOptions = new OverUseDetectorOptions();
            OveruseEstimator       overuseEstimator       = new OveruseEstimator(overUseDetectorOptions);

            var list = new List <TesData>();

            for (int i = 0; i < 100; i++)
            {
                TesData tesData = new TesData()
                {
                    size_d = new Random().Next(0, 10000), ts_d = new Random().Next(0, 100), t_d = new Random().Next(10, 200)
                };
                list.Add(tesData);
            }

            overuseEstimator.Update(20, 10, 1084, BandwidthUsage.kBwNormal);

            Console.ReadLine();
        }