We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b609554 commit af5c5f0Copy full SHA for af5c5f0
source/mir/math/stat.d
@@ -142,7 +142,7 @@ template simpleLinearRegression(Summation summation = Summation.kbn)
142
143
/// ditto
144
@optmath
145
- typeof(X.init * Y.init)[2]
+ sumType!(Y[])[2]
146
simpleLinearRegression(X, Y)(scope const X[] x, scope const Y[] y) @safe
147
{
148
return .simpleLinearRegression!summation(x.sliced, y.sliced);
0 commit comments