linReg

Parameters

Parameter label

I/O type

Data type

Mandatory parameter?

Default value

inputVec

input

vector

yes

N/A

outputVec

output

vector

N/A

N/A

Functionality

Module applies a linear regression to the values in inputVec (using index position as x-values) and outputs the two calculated coefficients (slope and y-intercept) as outputVec. Here’s a simple example:

inputVec = [1,-2,-3,-4]
...
outputVec = [-1.6, 0.4]