Interface ActivationTanH<T extends Tensor>

All Superinterfaces:
Function<T>
All Known Implementing Classes:
ActivationTanH_F32, ActivationTanH_F64

public interface ActivationTanH<T extends Tensor>
extends Function<T>
The hyperbolic tangent (tanh) is defined as:
 tanh(x) = sinh(x)/cosh(x) = 2*σ(2*x) - 1
 
where σ(x) is the sigmoid function, sinh and cosh are hyperbolic sine and cosine functions. It has a range of -1 to 1. Converges towards 1 for positive numbers and -1 for negative numbers.