Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/31/10 19:18
Read: times


 
#180370 - Thanks
Responding to: ???'s previous message
Thanks for all the comments and suggestions. While searching on Numberical differentiation, I have found something really helpful in the maths components I already had, it uses an exotic technique called Solvitsky-Golvay filtering to smooth the data.

Here are the same views as before, but using the new code. Data is processed from vectors, sawtooth holds the original data, smoothedfirstdiff, smootherseconddiff hold the results.

 mysqlrows:=0;
   WITH mytable2 DO
     BEGIN
       mysqlrows:=recordcount;
     if mysqlrows <>0 THEN
      BEGIN
       Sawtooth.Clear;
       Smoothedfirstderiv.Clear;
       SmoothedSecondDeriv.Clear;
       sawtooth.NrOfElem           :=mysqlrows-1;
       smoothedfirstderiv.NrOfElem :=mysqlrows-1;
       smoothedsecondderiv.NrofElem:=mysqlrows-1;
       For ctr:=1 to mysqlrows-1  DO
        BEGIN
        {Load sawtooth vector with data}
         sawtooth.Elem[ctr]:=fields[1].Value;
         next;
        END;
       {vector now filled with data}

       firstderiv (sawtooth,0,mysqlrows-1,smoothedfirstderiv  ,round(filtersize.value));
       secondderiv(sawtooth,0,mysqlrows-1,smoothedsecondderiv ,round(filtersize.Value));
       {Data is now smoothed in vector, put it into t_pressuretime, the SQL table with the data}

       first;
       for CTR := 1 to mysqlrows-1 do
         BEGIN
          edit;
          fields[2].Value:=10*smoothedfirstderiv. Elem[ctr]; //Scaled up for the graph;
          fields[3].Value:=10*smoothedsecondderiv.Elem[ctr];
          next;
         END;
       showmessage('Done data transfer');
      END
       ELSE
        showmessage('Failed');
     myquery1.Execute;
     END;
 



Here's the graph



Now I have a very clear indication of the maximum.

List of 32 messages in thread
TopicAuthorDate
Data analysis            01/01/70 00:00      
   Mean Peaks            01/01/70 00:00      
      Peaks            01/01/70 00:00      
         Peaks            01/01/70 00:00      
            Many thanks.            01/01/70 00:00      
            first principles            01/01/70 00:00      
               Or capture end flank            01/01/70 00:00      
                  Thanks            01/01/70 00:00      
   You know what? A lot of guys doing useful work with PC's ..            01/01/70 00:00      
      Delphi            01/01/70 00:00      
         Delphi compiler            01/01/70 00:00      
            Delphi            01/01/70 00:00      
               Borland -> CodeGear -> Embarcadero            01/01/70 00:00      
                  yes...indeed            01/01/70 00:00      
                     Not entirely            01/01/70 00:00      
                        only?            01/01/70 00:00      
                           CodeWright            01/01/70 00:00      
                              They are just stupid            01/01/70 00:00      
                                 Borland collected            01/01/70 00:00      
                                    Verity Stob            01/01/70 00:00      
                                       Good one            01/01/70 00:00      
                                          Read her "Best of"            01/01/70 00:00      
                              Codewright            01/01/70 00:00      
                                 RE: what kind Codewright?            01/01/70 00:00      
                                    what a nice programmer            01/01/70 00:00      
                                       HUH?            01/01/70 00:00      
                              CodeWright - still available?            01/01/70 00:00      
                                 CodeWright available from embarcedero ...            01/01/70 00:00      
                                    How do they justify that??!            01/01/70 00:00      
                                       Corporate decision            01/01/70 00:00      
         Version?            01/01/70 00:00      
            2010            01/01/70 00:00      

Back to Subject List