示例#1
0
        private SimpleRegressionModel MinRangeLinearRegression()
        {
            var x          = Vector.Create(Points.Select(v => v.NDouble).ToArray());
            var y          = Vector.Create(Points.Select(v => v.TotDouble).ToArray());
            var regression = new SimpleRegressionModel(y, x);

            regression.Fit();

            return(regression);
        }
示例#2
0
        private SimpleRegressionModel SigDigitsLinearRegression()
        {
            var x          = Vector.Create(Points.Select(v => (double)v.X).ToArray());
            var y          = Vector.Create(Points.Select(v => (double)v.Y).ToArray());
            var regression = new SimpleRegressionModel(y, x);

            regression.Fit();

            return(regression);
        }