This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
university:courses:alm1k:intro:data-analysis-1 [11 Sep 2019 20:01] – [Resources and Going Further] Doug Mercer | university:courses:alm1k:intro:data-analysis-1 [30 Sep 2019 02:26] – [Polynomial Fit Example] Doug Mercer | ||
---|---|---|---|
Line 114: | Line 114: | ||
Open the Command Line interface ( with the program stopped ). We want to fit a polynomial using the polyfit function to the first 500 samples where CH-A ramps from 0 to 5 V. Type the following line into the entry space and hit return. | Open the Command Line interface ( with the program stopped ). We want to fit a polynomial using the polyfit function to the first 500 samples where CH-A ramps from 0 to 5 V. Type the following line into the entry space and hit return. | ||
- | global Zpoly; Zpoly = numpy.polyfit(VBuffA[0: | + | **global Zpoly; Zpoly = numpy.polyfit(VBuffA[0: |
To check the terms of the polynomial, type the following line into the entry space and hit return. | To check the terms of the polynomial, type the following line into the entry space and hit return. |