|
fitpack
Modern Fortran library for curve and surface fitting with splines
|
C interface to fitpack_curves. More...
Data Types | |
| type | fitpack_curve_c |
| Public Fortran interface. More... | |
Functions/Subroutines | |
| subroutine, public | fitpack_curve_c_get_pointer (this, fptr) |
| Get pointer to embedded Fortran object. | |
| subroutine, public | fitpack_curve_c_pointer (this, fthis) |
| Get embedded Fortran object; allocate it if not done yet. | |
| subroutine, public | fitpack_curve_c_allocate (this) |
| Instantiate Fortran object. | |
| subroutine, public | fitpack_curve_c_destroy (this) |
| Deallocate Fortran object. | |
| subroutine, public | fitpack_curve_c_copy (this, that) |
| Copy contents from another object. | |
| subroutine | fitpack_curve_c_move_alloc (to, from) |
| Move allocation from one object to another. | |
| subroutine, public | fitpack_curve_c_new_points (this, npts, x, y, w) |
| Wrapper to new_points. | |
| integer(fp_flag) function, public | fitpack_curve_c_new_fit (this, npts, x, y, w, smoothing) |
| Wrapper to new_fit. | |
| integer(fp_flag) function, public | fitpack_curve_c_fit (this, smoothing, order) |
| Wrapper to curve_fit_automatic_knots. | |
| integer(fp_flag) function, public | fitpack_curve_c_interpolating (this, order) |
| Wrapper to interpolating_curve. | |
| real(fp_real) function, public | fitpack_curve_c_eval_one (this, x, ierr) |
| Wrapper to curve_eval_one. | |
| subroutine, public | fitpack_curve_c_eval_many (this, npts, x, y, ierr) |
| Wrapper to curve_eval_many. | |
| real(fp_real) function, public | fitpack_curve_c_integral (this, from, to) |
| Wrapper to integral. | |
| subroutine, public | fitpack_curve_c_fourier (this, nparm, alpha, a, b, ierr) |
| Wrapper to fourier_coefficients. | |
| real(fp_real) function, public | fitpack_curve_c_derivative (this, x, order, ierr) |
| Wrapper to curve_derivative. | |
| integer(fp_flag) function, public | fitpack_curve_c_all_derivatives (this, x, ddx) |
| Wrapper to curve_all_derivatives. | |
| real(fp_real) function, public | fitpack_curve_c_smoothing (this) |
| Get smoothing. | |
| real(fp_real) function, public | fitpack_curve_c_mse (this) |
| Get MSE. | |
| integer(fp_size) function, public | fitpack_curve_c_degree (this) |
| Get spline degree. | |
| subroutine, public | fitpack_curve_c_set_bc (this, bc) |
| Set spline behavior outside the support. | |
| integer(fp_flag) function, public | fitpack_curve_c_get_bc (this) |
| Get spline behavior outside the support. | |
Variables | |
| type(fitpack_curve_c), parameter, public | fitpack_curve_c_null = fitpack_curve_c(cptr=c_null_ptr) |
| Null-initialized object. | |
C interface to fitpack_curves.
| integer(fp_flag) function, public fitpack_curves_c::fitpack_curve_c_all_derivatives | ( | type(fitpack_curve_c), intent(inout) | this, |
| real(fp_real), intent(in), value | x, | ||
| real(fp_real), dimension(*), intent(out) | ddx ) |
Wrapper to curve_all_derivatives.
Get object; allocate it in case

| subroutine, public fitpack_curves_c::fitpack_curve_c_allocate | ( | type(fitpack_curve_c), intent(inout) | this | ) |
Instantiate Fortran object.

| subroutine, public fitpack_curves_c::fitpack_curve_c_copy | ( | type(fitpack_curve_c), intent(inout) | this, |
| type(fitpack_curve_c), intent(inout) | that ) |
Copy contents from another object.

| integer(fp_size) function, public fitpack_curves_c::fitpack_curve_c_degree | ( | type(fitpack_curve_c), intent(inout) | this | ) |
Get spline degree.
Get object; allocate it in case

| real(fp_real) function, public fitpack_curves_c::fitpack_curve_c_derivative | ( | type(fitpack_curve_c), intent(inout) | this, |
| real(fp_real), intent(in), value | x, | ||
| integer(fp_size), intent(in), value | order, | ||
| integer(fp_size), intent(out), optional | ierr ) |
Wrapper to curve_derivative.
Get object; allocate it in case

| subroutine, public fitpack_curves_c::fitpack_curve_c_destroy | ( | type(fitpack_curve_c), intent(inout) | this | ) |
Deallocate Fortran object.

| subroutine, public fitpack_curves_c::fitpack_curve_c_eval_many | ( | type(fitpack_curve_c), intent(inout) | this, |
| integer(fp_size), intent(in), value | npts, | ||
| real(fp_real), dimension(npts), intent(in) | x, | ||
| real(fp_real), dimension(npts), intent(out) | y, | ||
| integer(fp_flag), intent(out), optional | ierr ) |
Wrapper to curve_eval_many.
Get object; allocate it in case

| real(fp_real) function, public fitpack_curves_c::fitpack_curve_c_eval_one | ( | type(fitpack_curve_c), intent(inout) | this, |
| real(fp_real), intent(in), value | x, | ||
| integer(fp_flag), intent(out), optional | ierr ) |
Wrapper to curve_eval_one.
Get object; allocate it in case

| integer(fp_flag) function, public fitpack_curves_c::fitpack_curve_c_fit | ( | type(fitpack_curve_c), intent(inout) | this, |
| real(fp_real), intent(in), optional | smoothing, | ||
| integer(fp_size), intent(in), optional | order ) |
Wrapper to curve_fit_automatic_knots.
Get object; allocate it in case

| subroutine, public fitpack_curves_c::fitpack_curve_c_fourier | ( | type(fitpack_curve_c), intent(inout) | this, |
| integer(fp_size), intent(in), value | nparm, | ||
| real(fp_real), dimension(nparm), intent(in) | alpha, | ||
| real(fp_real), dimension(nparm), intent(out) | a, | ||
| real(fp_real), dimension(nparm), intent(out) | b, | ||
| integer(fp_flag), intent(out), optional | ierr ) |
Wrapper to fourier_coefficients.
Get object; allocate it in case

| integer(fp_flag) function, public fitpack_curves_c::fitpack_curve_c_get_bc | ( | type(fitpack_curve_c), intent(inout) | this | ) |
Get spline behavior outside the support.
Get object; allocate it in case

| subroutine, public fitpack_curves_c::fitpack_curve_c_get_pointer | ( | type(fitpack_curve_c), intent(in) | this, |
| type(fitpack_curve), intent(inout), pointer | fptr ) |
Get pointer to embedded Fortran object.
| real(fp_real) function, public fitpack_curves_c::fitpack_curve_c_integral | ( | type(fitpack_curve_c), intent(inout) | this, |
| real(fp_real), intent(in), value | from, | ||
| real(fp_real), intent(in), value | to ) |
Wrapper to integral.
Get object; allocate it in case

| integer(fp_flag) function, public fitpack_curves_c::fitpack_curve_c_interpolating | ( | type(fitpack_curve_c), intent(inout) | this, |
| integer(fp_size), intent(in), optional | order ) |
Wrapper to interpolating_curve.
Get object; allocate it in case

|
private |
Move allocation from one object to another.

| real(fp_real) function, public fitpack_curves_c::fitpack_curve_c_mse | ( | type(fitpack_curve_c), intent(inout) | this | ) |
Get MSE.
Get object; allocate it in case

| integer(fp_flag) function, public fitpack_curves_c::fitpack_curve_c_new_fit | ( | type(fitpack_curve_c), intent(inout) | this, |
| integer(fp_size), intent(in), value | npts, | ||
| real(fp_real), dimension(npts), intent(in) | x, | ||
| real(fp_real), dimension(npts), intent(in) | y, | ||
| real(fp_real), dimension(npts), intent(in), optional | w, | ||
| real(fp_real), intent(in), optional | smoothing ) |
Wrapper to new_fit.
Local variables
Get object; allocate it in case

| subroutine, public fitpack_curves_c::fitpack_curve_c_new_points | ( | type(fitpack_curve_c), intent(inout) | this, |
| integer(fp_size), intent(in), value | npts, | ||
| real(fp_real), dimension(npts), intent(in) | x, | ||
| real(fp_real), dimension(npts), intent(in) | y, | ||
| real(fp_real), dimension(npts), intent(in), optional | w ) |
Wrapper to new_points.
Local variables
Get object; allocate it in case

| subroutine, public fitpack_curves_c::fitpack_curve_c_pointer | ( | type(fitpack_curve_c), intent(inout) | this, |
| type(fitpack_curve), intent(inout), pointer | fthis ) |
Get embedded Fortran object; allocate it if not done yet.

| subroutine, public fitpack_curves_c::fitpack_curve_c_set_bc | ( | type(fitpack_curve_c), intent(inout) | this, |
| integer(fp_flag), intent(in), value | bc ) |
Set spline behavior outside the support.
Get object; allocate it in case
Validate extrapolation behavior value

| real(fp_real) function, public fitpack_curves_c::fitpack_curve_c_smoothing | ( | type(fitpack_curve_c), intent(inout) | this | ) |
Get smoothing.
Get object; allocate it in case

| type(fitpack_curve_c), parameter, public fitpack_curves_c::fitpack_curve_c_null = fitpack_curve_c(cptr=c_null_ptr) |
Null-initialized object.