com.metsci.glimpse.util.math.fast
Class FastFuncUnboundedDomain
java.lang.Object
com.metsci.glimpse.util.math.fast.FastFunc
com.metsci.glimpse.util.math.fast.FastFuncUnboundedDomain
- Direct Known Subclasses:
- FastAtan
public abstract class FastFuncUnboundedDomain
- extends FastFunc
Provides table look-up capability for functions of bounded
range but unbounded domain.
It uses a domain transformation to achieve this:
x -> x / ( 1 - |x| ), mapping [-inf,inf] -> [-1,1]
the inverse of which (used for lookups) is:
x -> x / ( 1 + |x| ).
- Author:
- ellis
Method Summary |
double |
evaluate(double x)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FastFuncUnboundedDomain
public FastFuncUnboundedDomain(int samples)
evaluate
public double evaluate(double x)
- Overrides:
evaluate
in class FastFunc
Copyright © 2012 Metron, Inc.. All Rights Reserved.