uvg266/tools/estimate.m

6 lines
136 B
Mathematica
Raw Normal View History

2019-03-18 13:35:03 +00:00
data = dlmread("/dev/stdin", " ");
coeffs = data(1:end, 1:5);
costs = data(1:end, 6);
[beta, sigma, r] = ols(costs, coeffs);
disp(beta)