Mir simple linear

Vino akashvino79 at gmail.com
Mon Mar 30 17:21:57 UTC 2020


Hi All,

   Can anyone  guide me what is the problem  with below code as it 
throws  error.

import std.stdio, mir.math.common: approxEqual;
static immutable x = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
static immutable y = [1, 3, 2, 5, 7, 8, 8, 9, 10, 12];
auto params = x.simpleLinearRegression(y);
writeln(params);



More information about the Digitalmars-d-announce mailing list