best fit curve - LabView cos fitting -
best fit curve - LabView cos fitting -
i working on programme needs fit numerous cosine waves in order determine 1 of parameters function. equation using y = y_0 + acos((4*pi*l)/x + pi) l value trying obtain best fit line.
i know possible correctly hand each set of data, best way automate process? reading in info text files, , running loop initial paramiters changing until have array of paramater values have amplitude similar data, check percent difference between points on center peak , 2 end peaks seek pick best one. in consistently picking lower values when fitting hand (almost 1 phase off). there way improve method, or method works better?
edit: labview version has cos fitting vi using, problem when seek automate fitting changing initial parameters using loop, cant figure out how programme pick same best fit line human pick.
why not utilize fast fourier transform? should way faster fitting cosine. in result vector of complex numbers largest peak of in totals. you're given frequency (position in fft result vector), amplitude , phase.
labview best-fit-curve
Comments
Post a Comment