On Monday, 30 March 2020 at 17:21:57 UTC, Vino wrote:
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);
static immutable y = [1.0, 3, 2, 5, 7, 8, 8, 9, 10, 12]; `.0` will change the sum type of y to double.
