vec_math
Class IdentFunction

java.lang.Object
  extended by vec_math.IdentFunction
All Implemented Interfaces:
Derivative, Function

public class IdentFunction
extends Object
implements Derivative

Delivers the argument.


Constructor Summary
IdentFunction()
           
 
Method Summary
static
<T> T
createFunction(String name, Class<T> as)
          Creates the transfer function, either with a one-dimensional argument as a Function or as a Multidimensional with an VectorG as argument.
static
<T> T
createFunction(String name, String init, Class<T> as)
          Creates the transfer function, either with a one-dimensional argument as a Function or as a Multidimensional with an VectorG as argument.
 double derivative(double x)
          Calculates the first derivative of the function at the given argument value, i.e.
 double evaluate(double x)
          Given the value of the independant variable, this method returns the value of the function as a primitive double.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentFunction

public IdentFunction()
Method Detail

evaluate

public double evaluate(double x)
Description copied from interface: Function
Given the value of the independant variable, this method returns the value of the function as a primitive double.

Specified by:
evaluate in interface Function

derivative

public double derivative(double x)
Description copied from interface: Derivative
Calculates the first derivative of the function at the given argument value, i.e. we return df/dx(x).

Specified by:
derivative in interface Derivative

createFunction

public static final <T> T createFunction(String name,
                                         Class<T> as)
Creates the transfer function, either with a one-dimensional argument as a Function or as a Multidimensional with an VectorG as argument. The target class must support the default constructor.


createFunction

public static final <T> T createFunction(String name,
                                         String init,
                                         Class<T> as)
Creates the transfer function, either with a one-dimensional argument as a Function or as a Multidimensional with an VectorG as argument. If the target class supports a default constructor, the init argument may be null, otherwise (the target class supports construction only with a single string argument), the initializer should be given.