Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 Merceruniversity: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:499], VBuffB[0:499], 5)+**global Zpoly; Zpoly = numpy.polyfit(VBuffA[0:499], VBuffB[0:499], 5)**
  
 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.
university/courses/alm1k/intro/data-analysis-1.txt · Last modified: 07 Feb 2022 15:35 by Doug Mercer