Data Fitting Usage Model
Consider an algorithm that uses the Data Fitting functions. Typically, such algorithms consist of four steps or stages:
- Create a task. You can call the Data Fitting function several times to create multiple tasks.status = dfdNewTask1D( &task, nx, x, xhint, ny, y, yhint );
- Modify the task parameters.status = dfdEditPPSpline1D( task, s_order, c_type, bc_type, bc, ic_type, ic, scoeff, scoeffhint );
- Perform Data Fitting spline-based computations. You may reiterate steps 2-3 as needed.status = dfdInterpolate1D(task, estimate, method, nsite, site, sitehint, ndorder, dorder, datahint, r, rhint, cell );
- Destroy the task or tasks.status = dfDeleteTask( &task );