org.jscience.mathematics.analysis.interpolation
Class DoubleCubicSplineInterpolatorND

java.lang.Object
  extended by org.jscience.mathematics.analysis.interpolation.DoubleCubicSplineInterpolatorND
All Implemented Interfaces:
AbstractMapping, PrimitiveInterpolatorND, PrimitiveMappingND, SampledMapping

public class DoubleCubicSplineInterpolatorND
extends java.lang.Object
implements PrimitiveInterpolatorND

DOCUMENT ME!


Constructor Summary
DoubleCubicSplineInterpolatorND(java.lang.Object xArrays, java.lang.Object fOfX)
          Creates a new DoubleCubicSplineInterpolatorND object.
 
Method Summary
 double[] map(double[] unknownCoord)
          DOCUMENT ME!
 double[] map(float[] x)
          DOCUMENT ME!
 double[] map(int[] x)
          DOCUMENT ME!
 double[] map(long[] x)
          DOCUMENT ME!
 int numInputDimensions()
          The dimension of variable parameter.
 int numOutputDimensions()
          The dimension of the result values.
 ValuedPair samplePointAt(int index)
          Get the abscissa and value of the sample at the specified index.
 int size()
          Get the number of points in the sample.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleCubicSplineInterpolatorND

public DoubleCubicSplineInterpolatorND(java.lang.Object xArrays,
                                       java.lang.Object fOfX)
Creates a new DoubleCubicSplineInterpolatorND object.

Parameters:
xArrays - DOCUMENT ME!
fOfX - DOCUMENT ME!
Method Detail

numInputDimensions

public int numInputDimensions()
The dimension of variable parameter. Should be a strictly positive integer.

Specified by:
numInputDimensions in interface PrimitiveMappingND
Specified by:
numInputDimensions in interface SampledMapping
Returns:
DOCUMENT ME!

numOutputDimensions

public int numOutputDimensions()
The dimension of the result values. Should be inferior or equal to numInputDimensions(). Should be a strictly positive integer.

Specified by:
numOutputDimensions in interface PrimitiveMappingND
Specified by:
numOutputDimensions in interface SampledMapping
Returns:
DOCUMENT ME!

size

public int size()
Get the number of points in the sample.

Specified by:
size in interface SampledMapping
Returns:
number of points in the sample

map

public double[] map(int[] x)
DOCUMENT ME!

Specified by:
map in interface PrimitiveMappingND
Parameters:
x - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

map

public double[] map(long[] x)
DOCUMENT ME!

Specified by:
map in interface PrimitiveMappingND
Parameters:
x - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

map

public double[] map(float[] x)
DOCUMENT ME!

Specified by:
map in interface PrimitiveMappingND
Parameters:
x - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

map

public double[] map(double[] unknownCoord)
DOCUMENT ME!

Specified by:
map in interface PrimitiveMappingND
Parameters:
unknownCoord - DOCUMENT ME!
Returns:
DOCUMENT ME!
See Also:
org.jscience.mathematics.analysis.Domain.

samplePointAt

public ValuedPair samplePointAt(int index)
Get the abscissa and value of the sample at the specified index.

Specified by:
samplePointAt in interface SampledMapping
Parameters:
index - index in the sample, should be between 0 and size - 1
Returns:
abscissa and value of the sample at the specified index
Throws:
java.lang.UnsupportedOperationException - if the index is wrong