main.m1044 chars29 lines
To use this function, you can pass it an array of heights and an array of weights. The function will return the slope, intercept, and correlation coefficient of the linear regression of these inputs.
For example:
main.m174 chars5 lines
This will output:
main.m67 chars4 lines
gistlibby LogSnag