static void Main() { #if !DISABLE_XOR Application.ResultadoXOR = AlgoritmoClassificacao.xor(); Console.WriteLine(Application.ResultadoXOR); #endif Application.ResultadoRegressao = AlgoritmoRegressao.resultado(); Console.WriteLine(Application.ResultadoRegressao); using (var game = new Game1()) game.Run(); }
private void LoadRegressao() { var w = Application.ResultadoRegressao.Melhor.W; PontosRegressao = Enumerable .Range(0, 500) .Select(n => new PointColor { Point = new Point(n, (int)(Algoritmo.resultado(w, MVector.Build.Dense(new[] { n / 10.0 }))[0])), Color = Color.Red }); PontosFuncao = Enumerable .Range(0, 500) .Select(n => new PointColor { Point = new Point(n, (int)(AlgoritmoRegressao.funcao(n / 10.0))), Color = Color.Blue }); }