datan

## Class FunctionOnLine

- java.lang.Object
- - datan.FunctionOnLine

-     public final class FunctionOnLine
      extends java.lang.Object

  A class computing the value of a function at a given point on straight line in n-dimensional space.
  Author:
    Siegmund Brandt.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FunctionOnLine(DatanVector x0, DatanVector xdir, DatanUserFunction function)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `double` | `getFunctionOnLine(double a)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FunctionOnLine

          public FunctionOnLine(DatanVector x0,
                        DatanVector xdir,
                        DatanUserFunction function)

      Parameters:
        `x0` - point in n-space
        `xdir` - direction in n-space. Straight line is given by x = x0 + a * xdir, where a is a running scalar variable.
        `function` - user function which must be an extension of the abstract class DatanUserFunction.

  - ### Method Detail

    - #### getFunctionOnLine

          public double getFunctionOnLine(double a)

      Returns:
        the function value for a given value of the parameter a.