|
mauricio.angeles
UK
Posts |
Posted - 02/04/2008 : 06:04:13 AM
|
Origin Version (Select Help-->About Origin): 8.0 Operating System: Win Vista
Hi everybody,
I have been fitting a function that involves an integral in version 7.5, when I upgraded to version 8.0 the function did not worked. I have realized that a few features have been changed in version 8 like the way that data set are called within the funtion. The problem is that I cannot find the Curve_integrate object in 8.0 to perform the integration. My code is the following:
static double kstore, astore, bstore; //static property retains the parameter values over iterations BOOL bErr; Dataset dsAi("Data1_Ai"); Dataset dsBi("Data1_Bi"); Dataset dsA("Data1_A"); Dataset dsB("Data1_B"); Dataset dsfun1("Data1_fun1"); Dataset dsfun2("Data1_fun2"); Dataset dsfun3("Data1_fun3"); Dataset dsfun("Data1_fun"); Dataset dsInteg("Data1_integ");
if(k!=kstore || a!=astore || b!=bstore) { //parameter checking dsfun1 = (dsAi-dsAi*dsA)^a; //vector notation dsfun2 = (dsBi-dsAi*dsA)^b; dsfun3 = dsfun1*dsfun2; dsfun = dsAi/dsfun3; Curve crvFitCurve( "Data1_A", "Data1_fun" ); Curve crvBaseline( "Data1_A", "Data1_zeros" ); IntegrationResult irMyResults; //dsInteg.SetSize(crvFitCurve.GetSize()); bErr = Curve_integrate( &crvFitCurve, &irMyResults, NULL, &dsInteg, TRUE ); // Perform integration kstore=k; astore=a; bstore=b; } y=Data_table(x, &dsInteg, &dsA)/k;
I hope someone out there could help me. |
|