search for: p1absorbancearray

Displaying 1 result from an estimated 1 matches for "p1absorbancearray".

2010 Nov 04
1
Best Fit line trouble with rsruby
...class. The problem is that although the graph functions perfectly properly, the best fit line will not work. I initially used code I pretty much copied from a website with a tutorial on this, which was: graphData.png("/code/Beer's-Law Graph.png") concentration = p1Conc absorbance = p1AbsorbanceArray graphData.assign('x', p1Conc) graphData.assign('y', p1AbsorbanceArray) fit = graphData.lm('x ~ y') graphData.plot(concentration, absorbance) graphData.abline(fit["coefficients"]["(Intercept)"], fit["coefficients"]["y"]) puts fit["...