public class BilinearInterpolator extends Object
Modifier and Type | Field and Description |
---|---|
private double[][] |
_val |
private double[] |
_x |
private int |
_xDim |
private double |
_xmax |
private double |
_xmin |
private double[] |
_y |
private int |
_yDim |
private double |
_ymax |
private double |
_ymin |
Constructor and Description |
---|
BilinearInterpolator(double[] x,
double[] y,
double[][] z)
Creates a new instance of BilinearInterpolator
|
Modifier and Type | Method and Description |
---|---|
double |
interpolateValueAt(double x,
double y)
Return the value at an arbitrary x,y point, using bilinear interpolation
|
(package private) double |
polin2(double[] x1a,
double[] x2a,
double[][] ya,
double x1,
double x2) |
(package private) double |
polint(double[] xa,
double[] ya,
double x) |
(package private) double |
trueBilinear(double x,
double y) |
private double[] _x
private double _xmin
private double _xmax
private int _xDim
private double[] _y
private double _ymin
private double _ymax
private int _yDim
private double[][] _val
public BilinearInterpolator(double[] x, double[] y, double[][] z)
x
- Array of first independent variable at which values are knowny
- Array of second independent variable at which values are knownz
- Array of values at the (x,y) pointspublic double interpolateValueAt(double x, double y)
x
- the first independent variabley
- the second independent variabledouble polin2(double[] x1a, double[] x2a, double[][] ya, double x1, double x2)
double polint(double[] xa, double[] ya, double x)
double trueBilinear(double x, double y)
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.