public final class FunctionChain extends java.lang.Object implements Function, java.io.Serializable
Modifier and Type | Class | Description |
---|---|---|
static class |
FunctionChain.Link |
Class for making linked list of Functions
|
Function.Abs, Function.Chop, Function.Constant, Function.Exp, Function.Identity, Function.Linear, Function.Log, Function.Reciprocal, Function.Sqrt
Constructor | Description |
---|---|
FunctionChain() |
Modifier and Type | Method | Description |
---|---|---|
void |
add(IFunction newF) |
Adds the given function to the chain of functions.
|
double |
df(int n,
double x) |
Evaluates derivative via the chain rule.
|
double |
f(double x) |
Calculates function by applying subfunctions, in the ordered they were added.
|
double |
inverse(double f) |
Inverts function by calling inverse methods of subfunctions, in reverse order of their addition.
|
void |
remove(IFunction f) |
Removes the given function from the chain.
|
public double f(double x)
public double inverse(double f)
public double df(int n, double x)
public void add(IFunction newF)
public void remove(IFunction f)