[time-nuts] Curve fitting

Mark Sims holrum at hotmail.com
Wed Dec 23 05:45:46 UTC 2009


A disciplined oscillator can be modeled by an equation like:

OSC_FREQ = DRIFT_RATE*TIME + TEMPCO*TEMP + OSC_GAIN*DAC_VOLTAGE

For a set of data I know TIME,  TEMP,  FREQ,  DAC_VOLTAGE and OSC_GAIN (a constant in Hz/V).

What the good Lady Heather wants to calculate is the DRIFT_RATE (Hz per sec) and TEMPCO (Hz per degree C).

Does anybody have any code (preferably nice and simple C code)  to calculate those two parameters from a data set containing the other 5 values.   		 	   		  
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141665/direct/01/


More information about the time-nuts mailing list