Class: Numo::GSL::Spline2D::Bilinear

Inherits:
Numo::GSL::Spline2D show all
Defined in:
ext/numo/gsl/interp/gsl_interp.c

Class Method Summary collapse

Methods inherited from Numo::GSL::Spline2D

#eval, #eval_deriv_x, #eval_deriv_xx, #eval_deriv_xy, #eval_deriv_y, #eval_deriv_yy, #min_size, #name

Class Method Details

.new(spline, xa[], ya[]) ⇒ Object

Generate an instance of Numo::GSL::Spline2D::Bilinear class, a subclass of Numo::GSL::Spline2D class with gsl_interp2d_bilinear type.

This function initializes the interpolation object interp for the data (xa,ya,za) where xa and ya are arrays of the x and y grid points of size xsize and ysize respectively, and za is an array of function values of size xsize*ysize. The interpolation object (gsl_interp2d) does not save the data arrays xa, ya, and za and only stores the static state computed from the data. The xa and ya data arrays are always assumed to be strictly ordered, with increasing x,y values; the behavior for other arrangements is not defined.

Parameters:

  • spline (DFloat)
  • xa[] (DFloat)
  • ya[] (DFloat)


736
737
738
739
740
# File 'ext/numo/gsl/interp/gsl_interp.c', line 736

static VALUE
spline2d_bilinear_s_new(VALUE self, VALUE v1, VALUE v2, VALUE v3)
{
    return spline2d_s_new(self, gsl_interp2d_bilinear, v1, v2, v3);
}