public class RootSolver
extends java.lang.Object
| Constructor and Description |
|---|
RootSolver() |
| Modifier and Type | Method and Description |
|---|---|
double |
calcLimit(Function f,
int type,
double limit)
Calculates the point at which the specified function will fall below a given bound.
|
double |
findRoot(Function f,
double start,
double end)
Searches for the first root
r inside the specified interval such that f'(r) >= 0. |
public double findRoot(Function f, double start, double end)
r inside the specified interval such that f'(r) >= 0.f - the function to searchstart - the lower bound of the search intervalend - the upper bound of the search intervalf'(r) >= 0 if found, else Double.NaNpublic double calcLimit(Function f, int type, double limit)
NotImplemented exception is thrown.f - a function that describes the form of an emitted, or models the effect of a received spiketype - either SpikeEvent.PRE_SPIKE, or SpikeEvent.POST_SPIKElimit - the value of the bound