Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.math.analysis.interpolation
Class LinearInterpolator

    java.lang.Object
      org.apache.commons.math.analysis.interpolation.LinearInterpolator

All Implemented Interfaces:
  UnivariateRealInterpolator

    public class LinearInterpolator

extends Object
implements UnivariateRealInterpolator

Implements a linear function for interpolation of real univariate functions.

Since:
  2.2
Version:
  $Revision$ $Date$

Constructor Summary
`LinearInterpolator()`

Method Summary
`PolynomialSplineFunction` | `interpolate(double[] x, double[] y)` Computes a linear interpolating function for the data set.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### LinearInterpolator

    public LinearInterpolator()

Method Detail

### interpolate

    public PolynomialSplineFunction interpolate(double[] x,
                                                double[] y)

  Computes a linear interpolating function for the data set.

  Specified by:
    `interpolate` in interface `UnivariateRealInterpolator`
  Parameters:
    `x` - the arguments for the interpolation points
    `y` - the values for the interpolation points
  Returns:
    a function which interpolates the data set
  Throws:
    `DimensionMismatchException` - if `x` and `y` have different sizes.
    `NonMonotonousSequenceException` - if `x` is not sorted in strict increasing order.
    `NumberIsTooSmallException` - if the size of `x` is smaller than 2.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.