Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jmat.function
Class DoubleFunctionInterpolation  view DoubleFunctionInterpolation download DoubleFunctionInterpolation.java

java.lang.Object
  extended byjmat.function.DoubleFunction
      extended byjmat.function.DoubleFunctionInterpolation

public class DoubleFunctionInterpolation
extends DoubleFunction

DOCUMENT ME!

Version:
$Revision: 1.2 $

Field Summary
private  double[][] X
           
private  double[] Y
           
 
Fields inherited from class jmat.function.DoubleFunction
argNumber
 
Constructor Summary
DoubleFunctionInterpolation(double[][] in, double[] out)
           
 
Method Summary
private  int[] closest(double[] x, int num)
           
private  double dist(double[] x, double[] y)
           
 double eval(double value)
           
 double eval(double[] values)
           
private  double interpolate(double[] x)
           
 
Methods inherited from class jmat.function.DoubleFunction
checkArgNumber, toFramePlot2D, toFramePlot3D, toPanelPlot2D, toPanelPlot3D
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X

private double[][] X

Y

private double[] Y
Constructor Detail

DoubleFunctionInterpolation

public DoubleFunctionInterpolation(double[][] in,
                                   double[] out)
Method Detail

eval

public double eval(double[] values)
Specified by:
eval in class DoubleFunction

eval

public double eval(double value)

closest

private int[] closest(double[] x,
                      int num)

dist

private double dist(double[] x,
                    double[] y)

interpolate

private double interpolate(double[] x)