theba.core.math.NonUniformInterpolation Class Reference

List of all members.

Public Member Functions

 NonUniformInterpolation (double[] invals, double[] outvals)
double interpolate (double val)

Static Public Member Functions

static void main (String[] args)

Package Attributes

double[] samples
double[] values

Detailed Description

A class to return the linear interpolated value in a non-equally sampled range

Author:
jens

Definition at line 10 of file NonUniformInterpolation.java.


Constructor & Destructor Documentation

theba.core.math.NonUniformInterpolation.NonUniformInterpolation ( double[]  invals,
double[]  outvals 
)
Parameters:
invals an _increasing_ array indicating where on a positive linear line the samples are taken
outval An array indicating the sampled value at corresponding sample-positions

Definition at line 24 of file NonUniformInterpolation.java.

References theba.core.math.NonUniformInterpolation.samples, and theba.core.math.NonUniformInterpolation.values.

Referenced by theba.core.math.NonUniformInterpolation.main().


Member Function Documentation

double theba.core.math.NonUniformInterpolation.interpolate ( double  val  ) 
Parameters:
val 
Returns:
The linearly interpolated value between the two closest sample values

Definition at line 36 of file NonUniformInterpolation.java.

References theba.core.math.NonUniformInterpolation.samples, and theba.core.math.NonUniformInterpolation.values.

Referenced by theba.core.math.NonUniformInterpolation.main(), and theba.descriptors.AvgCurvature.measure().

static void theba.core.math.NonUniformInterpolation.main ( String[]  args  )  [static]

This is a simple test-routine as well as an example on usage

Parameters:
args 

Definition at line 64 of file NonUniformInterpolation.java.

References theba.core.math.NonUniformInterpolation.interpolate(), and theba.core.math.NonUniformInterpolation.NonUniformInterpolation().


Member Data Documentation


The documentation for this class was generated from the following file:

Generated on Fri Nov 13 08:57:08 2009 for Theba by  doxygen 1.6.1