コード例 #1
0
        //calculating the Line for each element in the List.
        private void CreateForm(TimeSeries ts)
        {
            for (var i = 0; i < _cf.Count; i++)
            {
                var array = new Point[ts.GetRowSize()];
                for (var j = 0; j < ts.GetRowSize(); j++)
                {
                    array[j] = new Point(ts.GetColumn(_cf[i].Feature1)[j], ts.GetColumn(_cf[i].Feature2)[j]);
                    _cf[i].AllPoints.Add(array[j]);
                }

                var line = CreateCorrelativeForm(array);

                _cf[i] = new CorrelatedFeatures(_cf[i].Feature1, _cf[i].Feature2, _cf[i].Correlation, line);
                //float th = FindThreshold(array, Cf[i]);
                //Cf[i] = new CorrelatedFeatures(Cf[i].Feature1, Cf[i].Feature2, Cf[i].Correlation, th, line);
            }
        }
コード例 #2
0
        //calculating the Line for each element in the List.
        public void CreateForm(TimeSeries ts)
        {
            for (var i = 0; i < Cf.Count; i++)
            {
                Point[] array = new Point[ts.GetRowSize()];
                for (int j = 0; j < ts.GetRowSize(); j++)
                {
                    array[j] = new Point(ts.GetColumn(Cf[i].Feature1)[j], ts.GetColumn(Cf[i].Feature2)[j]);
                    Cf[i].AllPoints.Add(array[j]);
                }

                Line line = CreateCorrelativeForm(array);

                Cf[i] = new CorrelatedFeatures(Cf[i].Feature1, Cf[i].Feature2, Cf[i].Correlation, 0, line);
                //float th = FindThreshold(array, Cf[i]);
                //Cf[i] = new CorrelatedFeatures(Cf[i].Feature1, Cf[i].Feature2, Cf[i].Correlation, th, line);
            }
        }